我使用FBFriendPickerViewController來顯示在iOS應用程序中邀請的朋友列表。FBFriendPickerViewController不顯示所有朋友
它只顯示安裝了應用程序的朋友的列表。爲什麼是這樣?
我也直接在我的應用程序中使用Graph API與Facebook sdk進行交互。這可能會干擾嗎?我正在爲權限打開一個會話: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];
檢查此鏈接:http://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-whoalso-use -m –