Don't get all friends of facebook in my ios app?

后端 未结 2 1273
死守一世寂寞
死守一世寂寞 2020-12-21 22:32

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.

相关标签:
2条回答
  • 2020-12-21 23:06

    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);
                              }];
    
    0 讨论(0)
  • 2020-12-21 23:15

    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

    • retrieve full list of friends using facebook API
    • Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app
    0 讨论(0)
提交回复
热议问题