我在我的页面上有一个fb.ui模式弹出窗口,让用户在我的页面上更新他们的状态。到目前为止,它工作得很好。现在我测试了一下,似乎是从我的页面中自动拉出了postpicture、标题和描述--我没有在我的脚本中定义它们。老实说,这看起来并不是很好,为了我的用户的利益,我想删除它,因为它看起来像是他们直接在给我的页面做广告。有没有办法让fb.ui对话框以一种简单的方式,只发布他们的消息?
谢谢你的帮助!
编辑:我的代码
FB.ui(
{
method: 'feed',
message: 'Facebook Dialogs are easy!'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);发布于 2011-03-02 08:50:16
查看fb.ui提要页面,查看传递的参数列表:
https://developers.facebook.com/docs/reference/dialogs/feed/
一些选项,如名称、描述和图像将根据您的页面内容自动生成,您可以在代码中将它们设置为空字符串或更合适的内容。
FB.ui(
{
method: 'feed',
message: 'Facebook Dialogs are easy!',
description: '',
name: '',
picture: _some_default_picture_
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);https://stackoverflow.com/questions/4762946
复制相似问题