Facebook自定义共享.什么是可能的


Facebook custom share. What is possible?

嘿,伙计们,可以自定义共享选项吗?

我正是在寻找一种分辨率,它可以让我分享一张特定的图片和一些文本。图片会发生变化,这取决于用户最近上传的内容。

很难解释我到底在找什么,但我会尽力的。例如:一个用户将自己的照片上传到我的页面上。上传成功后,图片底部会显示一些文字。之后,用户应该能够在Facebook的时间线上分享这张照片。

这能实现吗??

我对每一个暗示都很高兴。

这是非常可能的-您可以指定共享对话框中显示的确切信息:

取自FB.ui()文档

FB.ui(
  {
    method: 'feed',
    name: 'Facebook Dialogs',
    link: 'https://developers.facebook.com/docs/reference/dialogs/',
    picture: 'http://fbrell.com/f8.jpg',
    caption: 'Reference Documentation',
    description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
  },
  function(response) {
    if (response && response.post_id) {
      alert('Post was published.');
    } else {
      alert('Post was not published.');
    }
  }
);

正如你在上面看到的;您可以指定共享内容的namelinkpicturecaptiondescription参数
您可以通过此链接阅读有关Facebook JavaScript SDK的更多信息:
https://developers.facebook.com/docs/reference/javascript/

相关文章: