简体   繁体   English

检索Facebook朋友在iOS上的工作不一致

[英]Retrieving Facebook friends works inconsistently on iOS

I am using the following code to login a user and fetch his facebook friends : 我正在使用以下代码登录用户并获取他的facebook朋友:

 FBSDKLoginButton* loginButton = [[FBSDKLoginButton alloc] init];
    loginButton.delegate = self;
    loginButton.readPermissions = @[@"public_profile", @"email", @"user_friends"];

Problem: The Facebook friends list is not getting retrieved for some of the users. 问题:无法为某些用户检索Facebook朋友列表。 I have verified the Facebook app versions for these users - They are using the latest Facebook app version . 我已经为这些用户验证了Facebook应用程序版本-他们正在使用最新的Facebook应用程序版本。

Since v2.0 of the Graph API, you can only get friends who authorized your App with the user_friends permission too. 从Graph API v2.0开始,您也只能获得获得user_friends许可授权您的应用程序的朋友。 Btw, it does not matter which Facebook App version they have installed, that´s irrelevant. 顺便说一句,他们安装了哪个Facebook App版本都没有关系,这无关紧要。

More information: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app 详细信息: Facebook Graph Api v2.0 +-/ me / friends返回空,或者仅返回也使用我的应用程序的朋友

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM