[英]fb.ui share_open_graph vs share
一周前,圖片爭論已被Facebook殺死,自那以后,我試圖恢復我網站上的舊行為。
同
FB.ui({
method: 'share_open_graph',
action_type: 'og.shares',
action_properties: JSON.stringify({
object: {
'og:url': data.href,
'og:title': data.title,
'og:description': data.description,
'og:image': data.picture
}
})
},
我可以擁有一張圖片,但這不允許用戶僅在他們的牆上共享他們所管理的Facebook頁面上的鏈接。
使用FB.ui({ app_id: FacebookAppId, method: 'share', href: data.href, picture: data.picture, title: data.title, description: data.description, caption: 'WriteCraft' },
該鏈接是共享的,但是由於不贊成使用“圖片”,因此根本沒有圖像。
有解決問題的方法嗎?
要將圖像發布在fb上,請更改方法以從共享中獲取。 它可能有效。
FB.ui({
method: 'feed',
display: 'popup',
picture: data.picture,
}),
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.