Note that there are some explanatory texts on larger screens.

plurals
  1. POObjective-C/iPhone - oAuthException when using "me/checkins" as part of the Facebook Graph API
    text
    copied!<p>I am receiving the following graph response when checking users into Facebook using the Facebook Graph API. I am using the <a href="https://github.com/kevinmcmahon/facebook-ios-sdk" rel="nofollow">facebook-ios-sdk</a> within my iPhone application to do this.</p> <pre><code>{"error":{"type":"OAuthException","message":"An unexpected error has occurred. Please retry your request later."}} </code></pre> <p>I have not made any changes to my code today and I know for a fact (database logs, etc) that their have been successful checkins yesterday.</p> <p>I'm asking the SO community whether or not they have received similar errors and how they attempted to resolve them?</p> <p>I have already tried the following:</p> <ol> <li>Revoked access to my application via Facebook.</li> <li>Reset my <code>offline_access</code> token by forcing Facebook to generate a new one.</li> </ol> <p>Keep in mind my application successfully shares via peoples Facebook walls as well and this is working as expected without any problems.</p> <p>I request the following permissions from my users:</p> <pre><code>@"offline_access", @"publish_stream", @"publish_checkins", @"email" </code></pre> <p><strong>EDIT:</strong></p> <p>Okay, so this is quite strange and I'm thinking that it's an error on Facebook's end.</p> <p>I use the following code to tag friends in the checkin:</p> <pre><code>if ([self.selectedFriends count] &gt; 0) { [variables setObject:[self.selectedFriends componentsJoinedByString:@","] forKey:@"tags"]; } fb_graph_response = [fbGraph doGraphPost:@"me/checkins" withPostVars:variables clientId:accessToken]; </code></pre> <p><code>self.selectedFriends</code> is simply an <code>NSMutableArray</code> of Facebook profile ID's separated by commas, which is what the graph API says to use and remember this has been working fine for months.</p> <p><a href="http://developers.facebook.com/docs/reference/api/checkin/" rel="nofollow">http://developers.facebook.com/docs/reference/api/checkin/</a></p> <p>If I remove the <code>[variables setObject:[self.selectedFriends componentsJoinedByString:@","] forKey:@"tags"];</code> then the checkin works just fine for <em>me</em>.</p> <p>It fails every time I tag one or more friends. Is anyone else receiving the same error when tagging friends in a checkin?</p> <p><strong>UPDATE 1:</strong></p> <p>Looks like other people are receiving the same problem relating to Groups:</p> <p><a href="http://forum.developers.facebook.net/viewtopic.php?pid=349396" rel="nofollow">http://forum.developers.facebook.net/viewtopic.php?pid=349396</a></p> <p>I wonder if there's a bug at the moment relating to Checkins.</p> <p>I've posted a bug:</p> <p><a href="http://bugs.developers.facebook.net/show_bug.cgi?id=18134" rel="nofollow">http://bugs.developers.facebook.net/show_bug.cgi?id=18134</a></p> <p><strong>UPDATE 2:</strong></p> <p>Facebook were able to reproduce <a href="http://bugs.developers.facebook.net/show_bug.cgi?id=18134" rel="nofollow">the bug</a> and they're now looking into it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload