1
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                @"select uid,name,birthday_date from user where uid in (select uid2 from friend where uid1=me())", @"query",
                                nil];
[[StaticFacebook getFacebook] requestWithMethodName: @"fql.query" 
                       andParams: params
                   andHttpMethod: @"POST" 
                     andDelegate: self]

;

我正在使用上面的代码来获取朋友信息.....但问题是我得到了birth_day="null" 请给我建议解决方案......提前谢谢......

4

2 回答 2

0

确保您已请求适当的访问权限来检索生日字段。

user_birthday - Provides access to the birthday with year as the birthday property

参考:https ://developers.facebook.com/docs/authentication/permissions/

于 2012-05-31T07:50:28.860 回答
0

像这样访问生日权限..

[facebookObj authorize:App_ID permissions:[NSArray arrayWithObjects:@"offline_access",@"publish_stream",@"user_birthday",@"user_events",@"read_stream",@"friends_likes", nil] delegate:self];
于 2012-05-31T09:29:11.607 回答