如何使用Facebook api for iphone sdk从facebook上获取我的个人资料信息。 我已成功使用connect方法登录。
之后我写了类似的查询:
- (void)session:(FBSession*)session didLogin:(FBUID)uid {
NSString* fql = [NSString stringWithFormat:@"select uid,name,first_name,middle_name,last_name,affiliations,profile_update_time,timezone,religion,birthday,birthday_date,sex,hometown_location,relationship_status,political,current_location,activities,interests,music,tv,movies,books,quotes,about_me,hs_info,education_history,work_history,status,online_presence,family,username,website,is_blocked,contact_email,email,pic_small,pic_big,pic_square,pic,proxied_email,allowed_restrictions,verified from user where uid == %lld", _session.uid];
NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];
[[FBRequest requestWithDelegate:self] call:@"facebook.fql.query" params:params];
}
- (void)request:(FBRequest*)request didLoad:(id)result {
if ([request.method isEqualToString:@"facebook.fql.query"]) {
NSArray* users = result;
NSDictionary* user = [users objectAtIndex:0];
}
}
当我显示用户(词典)时,我无法从我的个人资料中获取所有值。一些已经存在并在我的个人资料中设置的值显示为空。
为什么我无法从自己的个人资料中获取所有信息? 或者我怎么样?
任何想法或帮助都会受到赞赏吗?
答案 0 :(得分:1)
请查看此问题,更新完整实施详情的问题:
Can't get email address using facebook sdk for IOS and graph api for facebook
答案 1 :(得分:0)
不,你不能>你可以用facebook api但不是全部
做一些事情