How to request facebook friends by city in FQL

Since in FQL, current_location has a city How can I query friends around a city?

e.g. select uid, name, pic_small, current_location from user where uid in (select uid2 from friend where uid1 = me ()) and current_location.city = 'Sunnyvale'

(Doesn't work on FQL)

Does anyone know the correct way to do this?

Greetings

+3


source to share


1 answer


SELECT current_location, name FROM user WHERE uid in (SELECT uid2 FROM friend WHERE uid1=me()) and "New York" in current_location

      



You may have to create a variable to get it filtered by city.

+2


source







All Articles