Edit:

The query should work by adjusting the second query to:

'"location":"SELECT location FROM page WHERE id IN (SELECT current_location.id FROM #friends)"';


When working with an array type in the FB API you can access the value in any query by doing array.value

Also, if all you need is the page's id, you'll probably get better performance by doing current_location.id in your first query



You're going to want to use a fql.multiquery, there is a similair answer here that can be tailored to your needs: Facebook Graph API get all users and their status

The FQL documentation on multiquery is located here: http://developers.facebook.com/docs/reference/fql/

Also are you trying to get the lat/long of a checkin object? If so you need to take a look at this resource: http://developers.facebook.com/docs/reference/fql/checkin/

Edit:

I'm not sure that what you are trying to do is possible. I just looked through the api and tested some queries, the only way you could get the lat/long from a friend seems to be based on a checkin, from there you can get details on the page if necessary... Even looking at your second query, current_location_id is not referenced anywhere in the page table, and selecting location from the page table is going to give you location info on the place that it pertains to. Maybe you could elaborate more on what you're trying to accomplish.

Here is a multiquery statement I wrote in PHP using FQL (it will select the coordinates of all your friends check ins, then from there get details on the place of the checkin pertaining to that friend):

try{
    $multiQuery = "{
        'query1':'SELECT coords, tagged_uids, page_id FROM checkin WHERE author_uid IN (SELECT uid2 FROM friend WHERE uid1 = me())',
        'query2':'SELECT name, description FROM page WHERE page_id IN (SELECT page_id FROM #query1)'
    }";

    $param = array(       
         'method' =&gt; 'fql.multiquery',       
         'queries' =&gt; $multiQuery,       
         'callback' =&gt; ''
    );       
    $queryresults = $facebook-&gt;api($param);
        print_r($queryresults);
    }
catch(Exception $o){
    print_r($o);
}


Get latitude/longitude of friend's current_location using Graph FQL
I asked this related question in stack overflow, Hence this forum is dedicated for sharepoint, Thought to ask here!!

I got to know how to get the Excel using sharepoint Excel web access webpart. However I am getting an error "Excel Services is unable to process the request. Wait a few minutes and try performing this operation again!!" Even If I directly access the Excel from the document library also getting the same error!!
