Grr... I cant seem to get fql working. One thing, I think the docs are old because i dont think api() likes just an array. Anyway:
$user_id = $facebook->get
I use this:
function fql($q, $access_token) {
// Run fql query
$fql_query_url = 'https://graph.facebook.com'
. '/fql?q='. urlencode($q)
. '&access_token=' . urlencode($access_token);
$fql_query_result = file_get_contents($fql_query_url);
$length = strlen(PHP_INT_MAX);
$fql_query_result = preg_replace('/"(user_id)":(\d{' . $length . ',})/', '"\1":"\2"', $fql_query_result);
return json_decode($fql_query_result, true);
}