2011-05-18 33 views
0

可能重複:
How does Facebook Sharer select Images?如何控制Facebook上顯示的圖片,當有人喜歡你的博客文章?

以及一切都是問題。我在談論的是博客或Facebook以外的任何網站:例如www.example.com/blogpost1

現在,Facebook選擇來自RSS源的圖片,這沒有多大意義,找出爲什麼它會拍這張照片而不是另一張照片的原因。這張圖片的代碼是這樣的:img src =「xxxxx.com/wp-content/themes/xxx/images/logo_flux.jpg」

我喜歡用我的logo.jpg代表網站。

謝謝!

回答

1

看看Open Graph Meta Tags

如果您使用的Open Graph標籤,則 以下六個要求:

og:title - The title of the entity. 
og:type - The type of entity. You must select a type from the list of Open Graph types. 
og:image - The URL to an image that represents the entity. Images must be at least 50 pixels by 50 pixels. Square images work best, but you are allowed to use images up to three times as wide as they are tall. 
og:url - The canonical, permanent URL of the page representing the entity. When you use Open Graph tags, the Like button posts a link to the og:url instead of the URL in the Like button code. 
og:site_name - A human-readable name for your site, e.g., "IMDb". 
fb:admins or fb:app_id - A comma-separated list of either the Facebook IDs of page administrators or a Facebook Platform application ID. At a minimum, include only your own Facebook ID. 
+0

太棒了!謝謝,看起來像打開圖形是相當不錯 現在我想如果我想爲我的博客的每個職位定義一張圖片,我需要一些PHP做這個標籤動態,對不對?嗯 – gimmedonuts 2011-05-19 03:17:07

+0

以及它沒有工作,直到我用這個工具驗證它:http://developers.facebook.com/tools/lint – gimmedonuts 2011-05-19 04:27:11

+0

但是,似乎我必須爲每個URL做....我做錯了什麼?我知道我放了一些標籤,但是看起來不像它的問題...網站是http://blog.viveoeurope.com – gimmedonuts 2011-05-19 04:37:42

相關問題