FBGraphUser对象没有friends
或user_friends
属性。
如果我打印FBGraphUser,我得到的结果是:
{
email = "tksybnk_goldmanstein_1414083483@tfbnw.net";
"first_name" = Maria;
gender = female;
id = 1515324765375152;
"last_name" = Goldmanstein;
link = "https://www.facebook.com/app_scoped_user_id/1515324765375152/";
locale = "en_US";
"middle_name" = Amfibibiijdh;
name = "Maria Amfibibiijdh Goldmanstein";
timezone = 0;
"updated_time" = "2014-10-23T16:58:11+0000";
verified = 0;
}
我请求的权限包括:
self.fbLoginView.readPermissions = ["public_profile", "email", "user_friends"]
当我在Graph API Explorer中进行请求时,确实获得了正确的响应:
{
"data": [
{
"name": "Open Graph Test User",
"id": "289719481225025"
}
],
"paging": {
"next": "https://graph.facebook.com/v2.1/1515324765375152/friends?limit=5000&offset=5000&__after_id=enc_AezwfD79EK96eREIyB6ZR8fvDu4G4q_wRb49JG4FYp_kNnWK2DNcdLt_LMnDodVraWMBXVR89Cw0FcTYMPmYSt1Q"
},
"summary": {
"total_count": 1
}
}
有没有一种特殊的方法来访问朋友,或者它们应该被打印在这个字典中?