![](/img/trans.png)
[英]Use Facebook share_open_graph for dynamic dialog with rectangle image instead of square
[英]Large image with Facebook share_open_graph, possible?
我的Facebook API有問題。 我想從網站上在Facebook上共享一些信息(URL,圖像,描述)。 但是我想在預覽對話框中看到大圖像。 我使用share_open_graph
:
FB.ui({
method: 'share_open_graph',
action_type: 'share',
action_properties: JSON.stringify({
object : {
'og:url': 'https://developers.facebook.com/docs',
'og:title': 'Facebook Developer Docs',
'og:description': 'Learn more about our Facebook products through Developer docs. Explore Facebook documentation for AR/VR, Business, Chat, Games, Machine Learning, Monetization, Open Source & Social.',
'og:image': 'https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/lWB96Z8sFtt.png',
'og:image:width': '1200',
'og:image:height': '630',
'og:image:type': 'image/jpeg'
}
})
},function(response) {});
我該如何更改?
嘗試使用“ share”方法而不是“ share_open_graph”,如下所示:
FB.ui({
method: 'share',
href: 'https://developers.facebook.com/docs/',
}, function(response){});
資料來源: https : //developers.facebook.com/docs/sharing/reference/share-dialog/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.