I am trying to get user hometown
and location
using Facebook graph API for the logged-in user
Public permissions to fetch location and hometown is granted by the user.
Graph API version v2.8
/me?fields=name,picture,location,hometown
I am trying to get user hometown
and location
using Facebook graph API for the logged-in user
Public permissions to fetch location and hometown is granted by the user.
Graph API version v2.8
/me?fields=name,picture,location,hometown
2
Answers
You need to ask for permissions:
user_hometown
anduser_location
. The hometown/location is not included in the public permissions.You can also check the scope of your access token here
Here is how you can get the complete user profile using FB token:
I am assuming you have given permission before getting token from graph api explore which is:
https://developers.facebook.com/tools/explorer/
Hope it helps.