[英]Get facebook friends list
我知道我可以使用me/friends
获得我的朋友清单。 但是我需要获取公开其朋友列表的所有用户的朋友列表。 例如,假设我朋友的Facebook 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/feed" andParams:[NSMutableDictionary dictionaryWithObjects:values forKeys:keys] andDelegate:self];
但是,当[fbAgent requestWithGraphPath:@"XXXXX/friends" andParams:[NSMutableDictionary dictionaryWithObjects:values forKeys:keys] andDelegate:self];
我无法获得朋友列表[fbAgent requestWithGraphPath:@"XXXXX/friends" andParams:[NSMutableDictionary dictionaryWithObjects:values forKeys:keys] andDelegate:self];
它扔了
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
那么我如何获得任何用户的朋友列表。 请帮忙。
您只能获取已登录用户的朋友列表。 向您显示任何用户的好友列表都会显示出Facebook永远不支持的所有ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.