我正在使用以下代码在Facebook上共享链接:
shareOnFB: function() {
var img = "image.jpg";
var desc = "your caption here";
var title = 'your title here';
var link = 'https://your.link.here/';
// Open FB share popup
FB.ui({
method: 'share_open_graph',
action_type: 'og.shares',
action_properties: JSON.stringify({
object: {
'og:url': link,
'og:title': title,
'og:description': desc,
'og:image': img
}
})
},
function (response) {
// Action after response
});
带有实际的工作图像和链接。但是,由于某种原因,单击Facebook上的共享图像会重定向到Facebook Games,而不是我提供的实际链接。发生了什么事?