0

我想在我的时间轴上发布一个故事。

如何才能做到这一点?

4

1 回答 1

2

您需要做的就是阅读以下内容:

http://developers.facebook.com/docs/reference/javascript/

从以上:

以下示例使用 FB.ui() 方法调用 Feed 对话框以允许用户发布指向其时间线的链接:

FB.ui(
{
   method: 'feed',
   name: 'The Facebook SDK for Javascript',
   caption: 'Bringing Facebook to the desktop and mobile web',
   description: (
      'A small JavaScript library that allows you to harness ' +
      'the power of Facebook, bringing the user\'s identity, ' +
      'social graph and distribution power to your site.'
   ),
   link: 'https://developers.facebook.com/docs/reference/javascript/',
   picture: 'http://www.fbrell.com/public/f8.jpg'
},

function(response) 
{
    if (response && response.post_id) 
    {
      alert('Post was published.');
    } 
    else 
    {
      alert('Post was not published.');
    }
 }

);

于 2012-10-28T16:27:26.370 回答