Organizational Research By

Surprising Reserch Topic

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

Related Hot Questions

Government Jobs Opening