Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Social framework returns "(#803) Cannot query users by their username (username)" when trying to get user feed

I'm using iOs social framework in order to retrieve facebook feeds from a certain user. For that purpose, after authenticating I'm doing 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 response returns:

error =     {
        code = 803;
        message = "(#803) Cannot query users by their username (username)";
        type = OAuthException;
    };

The same works if I use /me instead of the username, but I want to retrieve someone else public feed.

I also tried using the user's id which also works for my user, but I it doesnt work for other users, the request 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 parameter but the behavior is the same.

Any ideas?

like image 384
Omer Avatar asked May 12 '14 18:05

Omer


People also ask

What are societal returns?

Social Return on Investment (SROI) is an organizational method of accounting for value creation, primarily social or environmental value. SROI enables organizations to measure how much change is being created by tracking relevant social, environmental, and economic outcomes.

What is the social rate of return?

The social internal rate of return refers to the costs and benefits to society of investment in education, which includes the opportunity cost of having people not participating in the production of output and the full cost of the provision of education rather than only the cost borne by the individual.

What is an example of social return on investment?

To give a very simplistic example: SROI Ratio assigns a monetary value to inputs and outcomes, using that assignation to calculate a ratio. If that SROI Ratio is 5:1, it means that every dollar allocated will generate (or has generated) social value worth five dollars.


1 Answers

Already pointed out in the comments, but you are not supposed to use the username anymore and you can´t access data of users who did not authorize your App.

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

(just trying to get the answer rate on SO higher)

like image 62
andyrandy Avatar answered Dec 28 '22 12:12

andyrandy