Posting to friends' wall with Graph API via 'feed' connection failing since Feb 6th 2013

耗尽温柔 提交于 2019-11-26 06:45:58

问题


My app started failing to post items on friends\' feeds. I am getting this error:

Facebook request error: The operation couldn’t be completed.
(facebookErrDomain error 10000.), details: Error Domain=facebookErrDomain Code=10000 \"The operation couldn’t be completed. (facebookErrDomain error 10000.)\" UserInfo=0xa26e990 {error={
    code = 200;
    message = \"(#200) Feed story publishing to other users is disabled for this application\";
    type = OAuthException;
}}

I didn\'t change anything in the app. Maybe it is related with Facebook upgrade? These are the permissions that I connect to Facebook with:

[appDelegate.facebook authorize:[NSArray arrayWithObjects:@\"publish_stream\", @\"friends_birthday\", nil]];

回答1:


Yes, this was announced months ago and took effect on Feb 6th 2013:

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.

The workaround is to use the Feed Dialog which allows users to post the same content, but choose the user they want to post it to.



来源:https://stackoverflow.com/questions/14792062/posting-to-friends-wall-with-graph-api-via-feed-connection-failing-since-feb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!