Facebook SDK for Android GraphUser

后端 未结 2 1112
既然无缘
既然无缘 2021-01-29 10:54

I am able to access the id, firstname, lastname, gender, and email of a GraphUser by using the following code. But, I also need access to \"location\", \"number of frien

2条回答
  •  悲哀的现实
    2021-01-29 11:41

    This is a pretty straightforward answer and the facebook documentation covers these details. https://developers.facebook.com/docs/reference/android/current . https://developers.facebook.com/docs/graph-api

    Here is the answer anyway!

    You will need user_friends for the number of friends. It returns the total count of friends.

    The default permission set called "basic info" has been removed, and replaced by "public profile".

    user_location for location.

    user_work_history for the work company.

    please note : users can choose to not give these permissions to your app, in which case you should handle those scenarios properly, else your app will get rejected in the review process.

提交回复
热议问题