2011-07-10 29 views
0

可能重複:
How does Facebook Sharer select Images?圖像標籤爲谷歌或Facebook

我有它的一些圖像的博客。現在我想要一個特定的一個出現在像谷歌+或Facebook的網頁上。 當我點擊「+1」時,它會顯示一個Facebook圖像,但不是實際博客條目的圖像。其與Facebook :(

做我必須給圖像的特殊標記或使

name="blog-name" title="blog-name" alt="blog-name" ? 

例子一樣:

<img src="/TwitterIcon.png" title="Blogname auf Twitter" width="22px" border="0"> 

工作

<img src="/m/home_button.png" title="Blogname" width="50px" border="0"> 

不工作

回答

0

忘記了圖像上的標籤,請使用Open Graph協議。讓Facebook的通過Open Graph的友好meta標籤刮掉:

<html xmlns="http://www.w3.org/1999/xhtml" 
     xmlns:og="http://ogp.me/ns#" 
     xmlns:fb="https://www.facebook.com/2008/fbml"> 
    <head> 
    <title>The Rock (1996)</title> 
    <meta property="og:title" content="The Rock"/> 
    <meta property="og:type" content="movie"/> 
    <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/> 
    <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/> 
    <meta property="og:site_name" content="IMDb"/> 
    <meta property="fb:admins" content="USER_ID"/> 
    <meta property="og:description" 
      content="A group of U.S. Marines, under command of 
        a renegade general, take over Alcatraz and 
        threaten San Francisco Bay with biological 
        weapons."/> 
    ... 
    </head> 
    ... 
</html> 

這將導致Facebook的抓住http://ia.media-imdb.com/rock.jpg