Facebook Graph api - 发布给朋友时间线问题

时间:2013-03-15 08:01:23

标签: facebook-graph-api

当我尝试使用facebook graph api发布给我的朋友时间表时,我得到了

{“error”:{“message”:“(#200)此应用程序禁用向其他用户发布Feed故事”,“”“键入”:“OAuthException”,“code”:200}}

在创建access_token时启用某些内容可以解决此问题吗?

如果是这样,我应该启用什么。

谢谢,

Padmaprasad G

2 个答案:

答案 0 :(得分:2)

答案 1 :(得分:1)

是的,这是几个月前宣布的,并于2月6日生效 - http://developers.facebook.com/roadmap/completed-changes

Removing ability to post to friends walls via Graph API
We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail. If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag). For more info, see this blog post.

解决方法是使用Feed对话框,该对话框允许用户发布相同的内容,但选择要将其发布到的用户。