Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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]];
like image 303
bashan Avatar asked Feb 09 '13 21:02

bashan


1 Answers

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.

like image 75
Igy Avatar answered Oct 25 '22 01:10

Igy