I use iOs social infrastructure to retrieve facebook feeds from a specific user. For this purpose, after authentication, I do the following:
NSURL *requestURL = [NSURL URLWithString:@"https://graph.facebook.com/username"]; SLRequest *request = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET URL:requestURL parameters:nil]; request.account = self.facebookAccount; [request performRequestWithHandler:^(NSData *data, NSHTTPURLResponse *response, NSError *error) { ... }];
The answer returns:
error = { code = 803; message = "(#803) Cannot query users by their username (username)"; type = OAuthException; };
The same thing works if I use /me instead of the username, but want to get another public channel.
I also tried using a user id that also works for my user, but I do not work for other users, the query returns the following:
code = 2500; message = "The global ID 100008339709776 is not allowed. Please use the application specific ID instead."; type = OAuthException;
I also tried passing the access token as a parameter, but the behavior is the same.
Any ideas?
Omer source share