Andrew Lauer Barinov
Andrew Lauer Barinov

Reputation: 5754

Facebook permissions confusion

I am trying to retrieve the user id and name using the iO SDK. As I understand, no additional authorization is needed to get these parameters.

Therefore I do this:

FBRequest *userIDRequest = [facebook requestWithGraphPath:@"http://graph.facebook.com/me?fields=id,name" 
                                              andDelegate:self];

And then deal with the data. However when I do this I get an error:

The operation couldn’t be completed. (facebookErrDomain error 10000.)

The only thing I could find regarding this error was a lack of user permissions, but as I said above these items should be gotten for free. Any idea what I'm doing wrong here?

Upvotes: 0

Views: 112

Answers (1)

Enrico Susatyo
Enrico Susatyo

Reputation: 19790

RequestWithGraph path already have the URL in the method call. You'd only have to add the graph path to the method:

FBRequest *userIDRequest = [facebook requestWithGraphPath:@"me" andParams: params andDelegate:self];

Just make sure you fill the params appropriately.

Upvotes: 1

Related Questions