Can I get user country code from Facebook Graph API?

When I tried to get the user's current location through FQL, the Graph API returned something like this:

{ "data": [ { "current_location": { "city": "Izmir", "state": "Izmir", "country": "Turkey", "zip": "", "id": 107968765903327, "name": "ฤฐzmir, Turkey" } } ] } 

Using the graph identifier above, I checked the location information from https://graph.facebook.com/107968765903327 , and this time I get more data about the city;

 { "id": "107968765903327", "name": "\u0130zmir, Turkey", "link": "http://www.facebook.com/pages/\u0025C4\u0025B0zmir-Turkey/107968765903327", "likes": 178460, "category": "City", "is_published": true, "is_community_page": true, "description": "\u003Cp>\u003Cb>Izmir\u003C/b> is a large ...", "location": { "latitude": 38.4072, "longitude": 27.1503 }, "checkins": 9059, "talking_about_count": 238710 } 

But, as you can see, there is no chance for a country code with these parameters. Any other suggestions?

+4
source share
1 answer

Source: https://habr.com/ru/post/1402840/


All Articles