Facebook Graph API - Country Name from Country Code

I have the following problem with Facebook Graph API. My use case is that I want to get the complete country object (like returned by Autocomplete data for countries ) based on the country code. I noticed that they assert that there is a "match_country_code" bool if you set it to "1 or true" then the "q" param can contain the country code and that this should return a country object.

Unfortunately, this is not the case. Does anyone know why? My example request looks like this:

 https://graph.facebook.com/v2.1/search?type=adgeolocation&location_types=['country']&q=GB&match_country_code=1

      

I've tried with true instead of 1 , but still ... no effect.

Thanks in advance for any help or hint.

+3


source to share


1 answer


https://graph.facebook.com/search?type=adgeolocation&location_types=<%27city%27>&limit=10000&q=GB Try this list of country and city heads.



0


source







All Articles