使用FB.ui将预定义消息添加到Facebook"发布到您的墙"对话框中

Oba*_*bay 2 javascript facebook facebook-graph-api

我正在使用FB.ui(https://developers.facebook.com/docs/reference/javascript/FB.ui/)在我的网站上创建"Post to Your Wall"功能:

var new_post = {
    method: 'feed',
    link: '/path/to/my/site',
    picture: '/path/to/image.jpg',
    name: 'My Site',
    caption: 'Lorem',
    description: 'Ipsum',
    message: 'Check out this link, guys!' //this does not work
};
FB.ui(new_post, callback_defined_somewhere);
Run Code Online (Sandbox Code Playgroud)

如何在帖子中添加预定义的消息,例如"查看此链接,伙计们!"

我已经尝试将message参数添加到new_post对象,但这似乎不起作用.

显示对话框时,焦点位于文本框上,Say something about this...而不是Check out this link, guys!消息.

有什么建议?

zer*_*kms 7

它已从2012年1月1日起从FB API中删除,并在2012年7月5日之后完全删除.请参阅http://developers.facebook.com/docs/fbjs/

所以现在你不能以任何方式指定消息的文本.