一周前,关于图片的争论被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' },
该链接是共享的,但由于“图片”已被弃用,因此根本没有图像。
有没有解决这个问题的办法?
发布于 2019-02-06 20:33:20
要在fb上发布图像,请将方法更改为从共享馈送。这也许能行得通。
FB.ui({
method: 'feed',
display: 'popup',
picture: data.picture,
}),https://stackoverflow.com/questions/45454382
复制相似问题