我这样称呼:
facebook requestWithGraphPath:@"me/friends"andDelegate:self]
现在我对 facbook 在委托(delegate)中返回给我的内容感到困惑?
我应该如何在 (void) request:(FBRequest*) request didLoad:(id) result 方法中解析它?它是否作为字典返回?
最佳答案
是的,我认为它总是一本字典。以下是一些用于处理“我/ friend ”调用的示例代码:
for (NSDictionary *friendData in [result objectForKey:@"data"])
{
id friendId = [friendData objectForKey:@"id"];
// Extract other information about the friend
}
关于objective-c - facebook graph API 和 objective-C 中的解析结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4020343/