1

i want to get all friend using Facebook integration in my app. i am give user_friends permmision at login time. and i use below code to get list of friends.

[FBRequestConnection startWithGraphPath:@"/me/friends"
                             parameters:nil
                             HTTPMethod:@"GET"
                      completionHandler:^(
                          FBRequestConnection *connection,
                          id result,
                          NSError *error
                      ) {
                          NsLog(@"Result = %@",result);
                      }];

But i got only that friend which uses my apps. means who installed my apps. but not get all friends of my Facebook . i want all friend of Facebook.

Kirit Modi
  • 23,155
  • 15
  • 89
  • 112

2 Answers2

2

You're apparantly using Graph API v2.0. If your app was registered after April 30th 2014, you don't have to chance to get all friends via /me/friends. This has been discussed here dozens of times, and Facebook docs clearly descibe this.

Have a look at

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

Graph API V.2.0 Got All friend list As below

[FBRequestConnection startWithGraphPath:@"/me/taggable_friends"
                                 parameters:nil
                                 HTTPMethod:@"GET"
                          completionHandler:^(
                                              FBRequestConnection *connection,
                                              id result,
                                              NSError *error
                                              ) {
                              NSLog(@"Toggle friend =%@",result);
                          }];
Kirit Modi
  • 23,155
  • 15
  • 89
  • 112