I am trying to get the latitude / longitude of all user friends using a single API call. I believe that I need to write a FQL statement with several queries, but I cannot get the syntax correctly.
I believe the two queries should be something like this:
'"friends":"SELECT uid,current_location FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"'
'"location":"SELECT location FROM page WHERE id IN (SELECT current_location_id FROM
My problem is that I somehow need to get the current_location identifier in the first request so that I can refer to it in the second request, but I only know how to get the array containing the identifier.
Thanks for any help!
Clarification:
I am not trying to get friends to register. Instead, I want to draw "current_location" (ie, Where they live) of all the user's friends on the Geo map. I can get the "current_location" of the user with the following FQL query:
"SELECT uid,sex,current_location FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"
:
[current_location] => Array
(
[city] => New York
[state] => New York
[country] => United States
[zip] =>
[id] => 108424279189115
[name] => New York, New York
)
_ (- )
_ (, 108424279189115) FQL, :
"SELECT location,name FROM page WHERE page_id = 108424279189115)"
_. , FQL, page_id php, FQL, / current_location. , , , .