我想获取有关用户的应用程序信息。他的名字、年龄、位置、性别、头像和其他资料。
现在我正在使用:
-(void)facebookOpenSession{
FBRequest *me = [FBRequest requestForMe];
[me startWithCompletionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
NSDictionary *resultDic = (NSDictionary<FBGraphUser> *) result;
facebookData = [[NSMutableDictionary alloc]initWithDictionary:resultDic];
FBRequest *pic = [FBRequest requestForGraphPath:@"me/?fields=picture"];
[pic startWithCompletionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
NSDictionary *resultDic = (NSDictionary<FBGraphUser> *) result;
NSDictionary *dic = [resultDic objectForKey:@"picture"];
NSDictionary *dic2 = [dic objectForKey:@"data"];
NSString *imgUrl = [dic2 objectForKey:@"url"];
NSLog(imgUrl);
}];
}];
}
我为用户个人资料和图像发出了两个请求,我想知道我是否只能拨打一个电话?如果我想获得其他信息,我需要做什么?