我如何自动张贴在用户墙上Facebook图

问题描述:

嗨如何当他连接时,我只需将内容发布到用户墙?我如何自动张贴在用户墙上Facebook图

我尝试这样做:

 <div id="fb-root"></div> 
     <script src="//connect.facebook.net/en_US/all.js"></script> 
      <script type="text/javascript"> 

      FB.init({ 
       appId  : '35455XXXX46207', // App ID 
       status  : true, // check login status 
       cookie  : true, // enable cookies to allow the server to access the session 
       xfbml  : true // parse XFBML 
      }); 


var publish = { 
    method: 'feed', 
    message: 'getting educated about Facebook Connect', 
    name: 'Connect', 
    caption: 'The Facebook Connect JavaScript SDK', 
    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: 'http://www.fbrell.com/', 
    picture: 'http://www.fbrell.com/f8.jpg', 
    actions: [ 
    { name: 'fbrell', link: 'http://www.fbrell.com/' } 
    ], 
    user_message_prompt: 'Share your thoughts about RELL' 
}; 

FB.ui(publish, Log.info.bind('feed callback')); 
</script> 

这个开放的一个网站弹出,但我想直接跟一些代码做到这一点。(像Spotify的做)

问题是什么? (我得到了ext_perms)

谢谢

+1

“不能使这项工作太”不是问题描述。你想让我们为你做你的工作吗? – zerkms

+0

不,我只是无法找到任何方式发布在用户墙上.. :(我只是想要一些帮助,开始 – Anthony

+0

上面的代码看起来不错 – zerkms

Spotify使用Open Graph。

李四{动作} '在{Spotify的'} 'D于{应用}

所以李四一个{对象} {' 听 '}一个{' 歌曲名称和标题}'

您可以配置这些内容,并且您在接受应用程序时需要获得这些权限。

转到您的应用程序在FB开发人员>应用程序>编辑应用程序>打开图表。

这就是你如何做到这一点。至于自动分享,我不确定,我正在自己寻找,但怀疑这是不可行的。想象一下滥用的能力。但它听起来像开放图将做你想做的。