Search for users based on the name and location of the Facebook Graph API, FQL

Here is what I'm trying to achieve, I have a facebook application that uses an api search example - https://graph.facebook.com/search?q=mark&type=user

using that I can search for users with their email or name or location, what I also want to do is search by a combination of name and location, I also tried fql, but it also does not give the desired result.

Is there a way to use the FAcebook API to search for people using more than one criteria

+4
source share
1 answer

You can try this

$user_friends1 = file_get_contents('https://graph.facebook.com/'.$uid.'/friends?fields=id,name,birthday&access_token='.$access_token); $user_friends = json_decode($user_friends1,1); 

now you can find what you want from the $ user_friends array

0
source

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


All Articles