我可以使用以下方法在 facebook 上分享任何链接:
FB.ui(
{
method: 'feed',
name: 'TagBin',
link: 'https://tagbin.in',
picture: '',
caption: 'tagbin-share',
description: 'tagBin provide a simple, consistent interface for sharing links.'
},
function(response){
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
})
但它会打开一个对话框,我可以在不打开对话框的情况下做到这一点吗?谢谢....