how to facebook get friends list

facebook get friends list  using -'ios,objective-c,iphone,facebook,facebook-graph-api'

I know it have been asked a lot here, but I can't find a proper answer for that.

I am using Facebook SDK v3.18

I simply want to get user friends list and their pictures .

I've tried so far this:


FBLoginView *loginView =
    [[FBLoginView alloc] initWithReadPermissions:
     @[@"public_profile", @"email", @"user_friends"]];
    // Align the button in the center horizontally
    loginView.frame = CGRectOffset(loginView.frame, ( - (loginView.frame.size.width / 2)), ( - (loginView.frame.size.height / 2)));
    [self.view addSubview:loginView];

Get user's friends list and their pictures:

[FBRequestConnection startWithGraphPath:@"/me/friends?fields=name,picture"
                                          FBRequestConnection *connection,
                                          id result,
                                          NSError *error
                                          ) {
                          /* handle the result */

But the answer is:

    data =     (
    summary =     {
        "total_count" = 1216;

And non for my friends name or pictures are shown :/

Please put some light for me on this.

Thanks in advance!

asked Sep 29, 2015 by pradip.bhoge
edited Oct 19, 2015 by rajesh
0 votes

2 Answers

0 votes

From the Facebook SDK page, it looks like /me/friends will only return your friends that have logged in and given permission to the same app (i.e. you and your friends need to have permitted your app to use facebook via login).

answered Sep 29, 2015 by mtabakade
0 votes

Did you tried below ?

FBRequest* friendsRequest = [FBRequest requestWithGraphPath:@"me/friends?fields=name" parameters:nil HTTPMethod:@"GET"];
    [friendsRequest startWithCompletionHandler: ^(FBRequestConnection *connection,
                                                  NSDictionary* result,
                                                  NSError *error) {
        NSArray* friends = [result objectForKey:@"data"];
        NSLog(@"Found: %i friends", friends.count);
        for (NSDictionary* friend in friends) {
            NSLog(@"I have a friend named %@ with id %@",,;

        NSArray *friendIDs = [friends collect:^id(NSDictionary* friend) {



Please check this post.

Facebook Graph Api v2.0 me/friends returns empty, or only friends who also use my app

answered Sep 29, 2015 by mtabakade