我是ios sdk的新手,最近我正在参与我所有朋友的诞生日的项目 在脸书中,我使用fql做了这个,我能够获得除生日之外的所有其他细节,我只获得生日,null_date列名的空值。 我只是添加我的代码和相应的代码,
代码:
- (IBAction)getPublicInfo:(id)sender
{
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"SELECT uid,first_name,middle_name,last_name,name,pic_small,pic_big,birthday,birthday_date FROM user WHERE uid IN (SELECT uid1 FROM friend WHERE uid2=me())", @"query",
nil];
[_facebook requestWithMethodName:@"fql.query"
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
}
输出:
{
birthday = "<null>";
"birthday_date" = "<null>";
"first_name" = Mohamed;
"last_name" = Sadik;
"middle_name" = "";
name = "Mohamed Sadik";
"pic_big" = "http://profile.ak.fbcdn.net/hprofile-ak-snc4/161194_100000520462852_5798920_n.jpg";
"pic_small" = "http://profile.ak.fbcdn.net/hprofile-ak-snc4/173417_100000520462852_4252833_t.jpg";
uid = 100000520462852;
}
答案 0 :(得分:3)
您需要允许user_birthday的权限