我正在使用 FBFriendPickerViewController 在我的 iOS 应用程序中显示要邀请的朋友列表。
它仅显示安装了该应用程序的好友列表。为什么是这样?
我还在我的应用程序中直接与 Facebook sdk 交互,以使用 Graph API。这会干扰吗?我正在为此打开一个具有以下权限的会话: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 开始:好友列表仅返回也使用您的应用程序的好友。查看Facebook 平台变更日志 https://developers.facebook.com/docs/apps/changelog
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)