Reputation: 5754
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
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