Objective-C / iPhone - oAuthException thrown when using "me / checkins" as part of the Facebook Graphics API

I get the following response to the graph when checking users on Facebook using the Facebook API. I am using facebook-ios-sdk in my iPhone application for this.

{"error":{"type":"OAuthException","message":"An unexpected error has occurred. Please retry your request later."}}

I have not made any changes to my code today, and I know that it is a fact (database logs, etc.) that successful checks passed yesterday.

I ask the SO community whether they received similar errors and how they tried to resolve them?

I have already tried the following:

  • Disabled access to my application via Facebook.
  • Reset my offline_accesstoken, forcing Facebook to generate a new one.

Remember that my application is successfully shared through the walls of Facebook Facebook, and it works without problems.

I request the following permissions from my users:

@"offline_access", @"publish_stream", @"publish_checkins", @"email"

EDIT:

Ok, so this is pretty weird, and I think this is a mistake at the end of Facebook.

I use the following code to tag friends in a session:

if ([self.selectedFriends count] > 0) {
   [variables setObject:[self.selectedFriends componentsJoinedByString:@","] forKey:@"tags"];
}

fb_graph_response = [fbGraph doGraphPost:@"me/checkins" withPostVars:variables clientId:accessToken];

self.selectedFriends- it’s just a NSMutableArrayFacebook profile identifier, separated by commas, which is what the GUI API says, and remembers that it works fine for several months.

http://developers.facebook.com/docs/reference/api/checkin/

If I delete [variables setObject:[self.selectedFriends componentsJoinedByString:@","] forKey:@"tags"];, then the check will be just fine for me.

He fails every time I make one or more friends. Does anyone else get the same error when tagging friends during verification?

UPDATE 1:

, , :

http://forum.developers.facebook.net/viewtopic.php?pid=349396

, , Checkins.

:

http://bugs.developers.facebook.net/show_bug.cgi?id=18134

2:

Facebook , .

+3
1

i m . ,

, , OAUTH , ,

, @ "user_checkins", @ "friends_checkins",

:

http://tylerwhitedesign.com/how-to-check-in-using-the-facebook-ios-sdk-and-graph-api

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               [dictionary objectForKey:@"place"], @"place", //The PlaceID
                               coordinates, @"coordinates", // The latitude and longitude in string format (JSON)
                               message, @"message", // The status message
                               tags, @"tags", // The user friends who are being checked in
                               nil];

[_facebook requestWithGraphPath:@"me/checkins" andParams:params andHttpMethod:@"POST" andDelegate: postCheckinRequestResult];

, !

+1

All Articles