2014-06-29 57 views
0

我使用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]; 
+0

檢查此鏈接:http://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-whoalso-use -m –

回答

3

從API v2.0以上版本:好友列表僅返回朋友誰也使用您的應用。檢查Facebook Platform Changelog

+1

好的謝謝。但是,用戶邀請其他人加入應用的建議方式是什麼?我見過很多其他應用程序顯示發送邀請的Facebook朋友列表。 – user1592096

+1

如果應用程序在遊戲類別中,那麼只有你會得到不可避免的朋友列表。 –

相關問題