2012-10-09 120 views
0

我知道我可以使用me/friends得到我的朋友列表。但是,我需要的是獲得公開朋友列表的任何用戶的朋友列表。例如,說我朋友的臉書ID是'XXXXX'。當我嘗試[fbAgent requestWithGraphPath:@"XXXXX/" andParams:[NSMutableDictionary dictionaryWithObjects:values forKeys:keys] andDelegate:self];時,我得到了我的朋友的名字和一些細節。此外,我得到的東西試過[fbAgent requestWithGraphPath:@"XXXXX/feed" andParams:[NSMutableDictionary dictionaryWithObjects:values forKeys:keys] andDelegate:self];的時候。但我未能獲得好友列表時[fbAgent requestWithGraphPath:@"XXXXX/friends" andParams:[NSMutableDictionary dictionaryWithObjects:values forKeys:keys] andDelegate:self];獲取facebook的朋友列表

2 : <CFString 0x6854230 [0x1473b38]>{contents = "type"} = <CFString 0x6854370 [0x1473b38]>{contents = "FacebookApiException"} 3 : <CFString 0x6854310 [0x1473b38]>{contents = "message"} = <CFString 0x68542c0 [0x1473b38]>{contents = "Unsupported operation"} 6 : <CFString 0x6847c60 [0x1473b38]>{contents = "code"} = 100

所以,我怎麼能得到任何用戶的好友列表。請幫忙。

回答

1

您只能獲取登錄用戶的好友列表。揭示你的朋友列表中的任何用戶結果揭示他們的Facebook從不支持的所有ID。