0

I need to get the list of all user's friends from Facebook, but the request returns only friends with installed app. Here the code:

FBRequest *request =  [FBRequest  requestWithGraphPath:@"me/friends" parameters:@{@"fields":@"installed,id,first_name,last_name,location,email"} HTTPMethod:@"GET"];
[request startWithCompletionHandler: ^(FBRequestConnection *connection,
                                       NSDictionary* result,
                                       NSError *error) {
    NSLog(@"result friends %@",[result objectForKey:@"data"]);
    NSLog(@"error %@",[error description]);
}];
r.kolodiy
  • 3
  • 5
  • possible duplicate of [Don't get all friends of facebook in my ios app?](http://stackoverflow.com/questions/23992387/dont-get-all-friends-of-facebook-in-my-ios-app) – Tobi Jun 11 '14 at 14:35
  • possible duplicate of [Facebook Graph Api v2.0 me/friends returns empty, or only friends who also use my app](http://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-who-also-use-m) – WizKid Jun 11 '14 at 15:27

1 Answers1

0

Have a look here: Don't get all friends of facebook in my ios app?

With Graph API v2.0, you'll only be able to get friends who also use the app. This is by design.

Community
  • 1
  • 1
Tobi
  • 31,405
  • 8
  • 58
  • 90