【发布时间】:2012-05-02 08:22:53
【问题描述】:
我似乎无法使用当前 iOS 图形方法正确检索用户的个人资料图片。
我的电话:self.pictureRequest = [facebook requestWithGraphPath:@"me/picture" andDelegate:self];
我如何处理结果:
-(void)request:(FBRequest *)request didLoad:(id)result{
if(request == self.pictureRequest){
UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 500, 500)];
image.image = [UIImage imageWithData:result];
[self.view addSubview:image];
NSLog("result is %@", result);
}
所以我现在只是想获取个人资料图片。结果在控制台中显示为 null。我想这意味着我实际上没有得到结果? (我试过if(result) NSLog(@"got a result")但它没有返回,所以我猜结果不是fb发回的?)
有什么想法吗?我也在这里查找了一个类似的问题,但不确定他们有什么不同: Problem getting Facebook pictures via iOS
【问题讨论】:
标签: iphone ios xcode facebook-graph-api