如何使用Android版Facebook SDK获取用户生日和在线状态 [英] How to get user birthday and online status with facebook SDK for android

查看:329
本文介绍了如何使用Android版Facebook SDK获取用户生日和在线状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SDK编写android应用程序,我需要获取 other 个用户(不是/me)的生日/年龄和在线状态吗?这可能吗?尝试过以下操作:

I am writing android application with SDK and I need to get other users's (not /me) birthday/age and online status? Is this possible? Tried following:

  • 使用GraphRequest访问/{user-id},但这仅返回名称和ID
  • 添加fields = age_range和user_birthday权限无济于事
  • 我无法进行FQL查询,因为自2.0版本起,我就不再使用它们,而我从Android登录名获得的访问令牌具有FQL限制.

有什么想法我还能获得用户的年龄/在线状态吗?

Any ideas how else I can get user's ages/online statuses?

感谢.

推荐答案

否,Graph API v2.0的朋友权限已被删除.您只能访问对您的应用进行授权的用户的数据(具有正确的权限).含义,生日,年龄和在线状态不可用.您甚至无法再获得授权用户的在线状态,因为该权限也已被删除.

No, friend permissions have been removed with v2.0 of the Graph API. You can only get access to data of users who authorized your App (with the correct permissions). Meaning, birthday, age and online status is not available. You can´t even get the online status of an authorized user anymore, because that permission has been removed too.

更多信息: https://developers.facebook.com/docs/apps/changelog #v2_0

这篇关于如何使用Android版Facebook SDK获取用户生日和在线状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆