gpt4 book ai didi

iphone - facebook-ios-sdk requestWithGraphPath : @"me/friends"

转载 作者:行者123 更新时间:2023-12-03 21:10:28 26 4
gpt4 key购买 nike

我找不到关于这个sdk的任何基本文档(我只是愚蠢还是找错地方了?)。我不知道这个方法是什么:

- (void)request:(FBRequest*)request didLoad:(id)result

在这样的请求的情况下实际上返回:

requestWithGraphPath:@"me/friends"

或者这个:

requestWithGraphPath:@"me"

结果似乎是一个非字典,但我不知道其中会发生什么等。

最佳答案

通过以下代码确认

 if ([result isKindOfClass:[NSDictionary class]]) {
NSLog(@"count : %d ", [result count]);
NSArray* resultArray = [result allObjects];

NSLog(@"count : %d ", [result count]);
result = [resultArray objectAtIndex:0];

NSLog(@"count : %d ", [result count]);
result = [result objectAtIndex:0];

[self.label setText:[result objectForKey:@"name"]];
}

关于iphone - facebook-ios-sdk requestWithGraphPath : @"me/friends",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3628546/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com