不要在我的ios应用程序中找到所有的Facebook的朋友?
我想让所有的朋友在我的应用程序中使用Facebook集成。我在登录时给 user_friends
permmision。我使用下面的代码来获取朋友列表。
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);
}];
但是我只有那个使用我的应用程序的朋友。意味着安装了我的应用程序但没有得到我的Facebook的所有朋友。我想要Facebook的所有朋友。
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.
你是使用Graph API v2.0的。如果您的应用程序在2014年4月30日之后注册,您不必通过 / me / friends
获得所有朋友的机会。这已经在这里讨论了几十次,Facebook的文档清楚地描述了这一点。
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.
看看
- 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