使用FB.ui在Facebook上共享会重定向到Facebook游戏吗?

时间:2019-01-10 13:13:15

标签: javascript facebook facebook-graph-api facebook-javascript-sdk

我正在使用以下代码在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,而不是我提供的实际链接。发生了什么事?

0 个答案:

没有答案