iphone - 从 facebook API 获取 birthday=Null

标签 iphone ios

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/

相关文章:

iphone - 我的iPhone应用程序信息也如何在其他网站上发布?

jquery - 如何创 build 备固定的容器?

iphone - 在 iPhone 中实现撤消重做的最佳实践

ios - 比较 NSString 与 NSString * const(在 iOS8.1 上)失败

objective-c - ScrollView 和信息按钮

ios - 使用 'YouTube-Player-iOS-Helper' ,是否可以在从屏幕上移除 YTPlayerView 时不暂停播放?

ios - 如何以正确的顺序设置分数(100 为第一)-(90 为第二)-(80 为第三)?

iphone - 单个 View Controller 的两个 View

iphone - 如何在没有模板缓冲区的情况下在 iPhone 上渲染 OpenGL ES 中的反射?

ios - 程序 block 乱序执行?