我正在使用 FBFriendPickerViewController 在我的 iOS 应用中显示要邀请的 friend 列表。
它只显示安装了该应用程序的 friend 列表。这是为什么?
我还在我的应用程序中直接与 Facebook sdk 交互,以使用 Graph API。这会干扰吗?我正在为此打开一个 session ,权限为:public_profile、user_friends friends_games_activity、publish_actions。
该应用在 Facebook 开发者中心处于开发模式。
这是我显示选择器的代码:
FBFriendPickerViewController *friendPickerController =
[[FBFriendPickerViewController alloc] init];
friendPickerController.title = @"Pick Friends";
// Load the friend data
[friendPickerController loadData];
// Show the picker modally
[friendPickerController presentModallyFromViewController:self animated:YES handler:nil];
最佳答案
从 API 版本 v2.0 开始: friend 列表仅返回也使用您的应用的 friend 。检查Facebook Platform Changelog
关于ios - FBFriendPickerViewController 不显示所有 friend ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24474124/