Returning the social structure "(# 803) Unable to complete user request by username (username)" when trying to get user feed

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?

+6
source share
1 answer

It has already been mentioned in the comments, but you should no longer use the username, and you cannot access the data of users who did not allow your application.

Changelog: https://developers.facebook.com/docs/apps/changelog

(just trying to get a response speed to SO higher)

+5
source

All Articles