5

I'm trying to search people using the Facebook API (Graph API or FQL, whichever works). Up to this point, it's working just fine but I can't get it to be filtered by country or language.

I'm currently retrieving this URL:

'https://graph.facebook.com/search?q=' . somename . '&type=user&access_token=' . $access_token

I have tried adding &locale=... but that didn't work either.

Jeroen
  • 13,056
  • 4
  • 42
  • 63

5 Answers5

3

try this:

http://graph.facebook.com/search?q=mccain%20chips&type=post&locale=en_US
Dawid Sajdak
  • 3,064
  • 2
  • 23
  • 37
0

It seems this is not possible with Facebooks API.

Jeroen
  • 13,056
  • 4
  • 42
  • 63
0

I didn't find a way to filter according to a locale but there is a way to have the locale field with users informations :

https://graph.facebook.com/search?q=NAME&type=user&fields=locale,name&access_token=ACCESS_TOKEN
Julien Augereau
  • 191
  • 1
  • 8
  • Yeah thats the whole problem I'm having, I know I can request the field but I cant filter based on the field... – Jeroen Dec 06 '11 at 19:07
  • I've searched one more time ... and didn't find anything more. Can't you really filter those results on your side after the request ? – Julien Augereau Dec 06 '11 at 19:13
  • Yes, but considering there are quite a lot of different locales that would be really inefficient, so I'm looking for a better solution – Jeroen Dec 06 '11 at 20:42
0
 https://graph.facebook.com/search?q=SOME_SEARCH&type=user&center=37.76,122.427&distance=1000


http://graph.facebook.com/search?q=SOME_SEARCH&type=user&locale=en_US
Mohit Bumb
  • 2,466
  • 5
  • 33
  • 52
  • As I've said, changing the locale or center has no effect, when searching for users Facebook seems to ignore these parameters – Jeroen Dec 08 '11 at 16:32
0

one of the more sophisticated methods is by fetching data from

www.facebook.com/search/results.php?q=paritosh&type=users&lo=812057

You can also fetch data from this link but it requires you logged in

http://www.facebook.com/search/ajax/?__a=1&lo=812057&q=paritosh&type=users&__user=1818667565

describing parameters :

  • lo=location point
  • q= query
  • type= users
  • __user = yours profile user id .
Inactive
  • 71
  • 10