简体   繁体   English

使用javascript SDK分享Facebook帖子

[英]Sharing facebook post using javascript sdk

I can share any link on facebook using this: 我可以使用以下方式在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.');
  }
})

but it opens a dialogue box, can i do it without opening dialogue box. 但是它会打开一个对话框,我可以不打开对话框而做到这一点。 Thanks.... 谢谢....

在墙上->否在团体上->最好与dilog一起使用,否则将导致垃圾邮件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM