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]
;
我正在使用上面的代码来获取 friend 信息.....
但问题是我收到了 birth_day="null"
请给我建议解决方案......
提前致谢.....
最佳答案
确保您已请求适当的访问权限来检索生日字段。
user_birthday - 提供对以年份作为生日属性的生日的访问
引用:https://developers.facebook.com/docs/authentication/permissions/
关于iphone - 从 facebook API 获取 birthday=Null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10828865/