How to get user birthday and online status with facebook SDK for android

我只是一个虾纸丫 提交于 2019-12-24 00:06:16

问题


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:

  • accessing /{user-id} with GraphRequest, but this returns only name and id
  • adding fields=age_range and user_birthday permissions doesn't help
  • i am not able to make FQL queries, because they are deprecated since 2.0 and my access token which I get from android login, has FQL limitation.

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

Thanx.


回答1:


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.

More information: https://developers.facebook.com/docs/apps/changelog#v2_0



来源:https://stackoverflow.com/questions/33987118/how-to-get-user-birthday-and-online-status-with-facebook-sdk-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!