我有一个Facebook应用程序,并试图发布后用户的墙,没有与任何类型的弹出对话框的notyfing的用户(用户授衔的publish_stream OAuth的权限)。Facebook应用程序:自动发布涂鸦墙
我一直在寻找很多,并尝试了很多不同的东西,使用FB.ui或FB.api,但我不能让它正常工作,我要么弹出通知,要么什么都不要所有。
继答案here,我有这样的代码,但它只是什么都不做,它只是提醒“未定义”(视后没有得到公布,也没有POST_ID)
var publish = {
method: 'stream.publish',
message: 'Test Message',
picture : 'http://www.mydomain.gr/apps/app1/img/small.png',
link : 'http://www.mydomain.gr/apps/app1/',
name: 'THIS IS MY APPLICATION!',
caption: ' ',
description: 'I just used this app and i loved it!!',
actions : { name : 'Use me!', link : 'http://www.mydomain.gr/apps/app1/'}
};
FB.api('/me/feed', 'POST', publish, function(response) {
alert(responce.post_id)
});
任何想法我如何实现它? 在此先感谢。
感谢您的回复!这是真的,我最近没有读过平台政策,我只是认为它可以做,因为我看到它在一些旧的应用程序发生。再次感谢你 ;) – CrisDeBlonde 2012-02-01 16:36:02