-1
你好朋友,我在博客上添加了我喜歡的按鈕。但是當任何人喜歡那個帖子時,在臉書上它顯示相同的帖子,但是具有不同的圖像。我會做什麼代碼。現在,我補充一點,一個如何在Facebook上獲得執行圖像像郵政?
//Adding the Open Graph in the Language Attributes
function wpc_fb_opengraph() {
$wpc_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
?>
<meta property="og:title" content="<?php the_title(); ?>" />
<meta property="og:url" content="<?php the_permalink(); ?>" />
<meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
<meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" />
<meta property="fb:app_id" content="1809-------303">*(hide Id)*
<meta property="fb:admins" content="C------a"/>
<meta property="og:image" content="<?php echo $wpc_image_url[0] ?>"/>
<?php }
add_action('wp_head', 'wpc_fb_opengraph');
請幫助我,以顯示同一圖像具有相同的URL 感謝名單 庫馬爾