Facebook graph api search results depend on location?

I tried to get the results using the graph search API, and I noticed that the results that are running on my computer (Argentina) are different from the results when I run it on a server (France).

This is true? How to force the location to search?

+6
facebook facebook-graph-api geolocation
source share
2 answers

Thanks @Sascha Galley. I also found another easy way.

Just add & locale = en_US to your Facebook Graph search API query URL .

This is a review of the list of languages โ€‹โ€‹and locales.

+8
source share

I donโ€™t know exactly which results will be different and which version of skd you are using, but one of the possible ways is to send an accept-language header with the cURL request. In the api php facebook file, add the following line to the makeRequest() function below $opts = self::$CURL_OPTS ;

 $opts[CURLOPT_HTTPHEADER] = array('Accept-Language: en-us,en;'); 

This post is almost two years old: Get the results of the Graph Graph API in English

Actually, this issue should already be resolved: The returned values โ€‹โ€‹from the api chart depend on the location of the geographic server

+1
source share

All Articles