Question

When i tried to get the current location of a user via FQL, Graph API returned something like this;

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

Using the Graph ID 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 see, there is no chance for the country code with these options. Any other suggestions?

Was it helpful?

Solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top