2012-06-27 26 views

回答

1

你有幾個meta標籤添加到您共享的頁面,有點像這樣:

<link rel="image_src" type="image/jpeg" href="IMAGE_URL_GOES_HERE"/>  
<meta itemprop="image" content="IMAGE_URL_GOES_HERE"/> 
<meta property="og:image" content="IMAGE_URL_GOES_HERE"/> 

或者,更好的方式來達到同樣的效果是用從FB.ui功能該JavaScript SDK:

var link = {}; 
link.method = 'feed'; 
link.link = url; 
link.picture = imageURL; 
link.name = title; 
link.caption = caption; 
link.description = description; 
FB.ui(link,callback); 

這樣,你有更多的控制權共享。

如果你對JS的使用限制,有直接的聯繫,也可用來代替FB.ui:

http://www.facebook.com/dialog/feed? 
    app_id=123050457758183& 
    link=http://developers.facebook.com/docs/reference/dialogs/& 
    picture=http://fbrell.com/f8.jpg& 
    name=Facebook%20Dialogs& 
    caption=Reference%20Documentation& 
    description=Using%20Dialogs%20to%20interact%20with%20users.& 
    redirect_uri=http://www.example.com/response 

此處瞭解詳情:http://developers.facebook.com/docs/reference/dialogs/feed/