3
用户点击share
按钮后,我需要获得post-id
。我的代码到目前为止:在FB.ui()分享后获取post-id
$("#share").click(function(e) {
e.preventDefault;
FB.ui({
method: 'share',
href: 'developers.facebook.com',
}, function(response){
if(response && !response.error_code) {
console.log(response); // => []
} else {
alert('err');
}
});
});
内容成功共享后,我得到的响应是一个没有数据的空数组。我如何获得share
的post-id
?
谢谢,刚刚测试过,你是对的。在添加publish_actions权限后,我得到了post-id的回复。 – Jacka 2014-11-05 13:39:12