Reputation: 123
I have been trying to fetch my address by using the Graph API Explorer :
https://developers.facebook.com/tools/explorer/ :
Am I missing something?
Thanks in advance
Upvotes: 0
Views: 201
Reputation: 4767
You need to give user_location
permission while requesting for the token.
then
you can use
me?fields=id,name,location
to get the location of the user.
The response will be in the format
{
"id": "userID",
"name": "Profile name",
"location": {
"id": "randomID",
"name": "name of the location"
}
}
Upvotes: 1
Reputation: 322
Im not sure Facebook allows the extraction of that level of individual data anymore. They made major changes to the graph in late January, just before the Cambridge analytica controversy
The only way you probably could get that level of data is perhaps using something like Selenium or Scrapy.
Upvotes: 1