I want to get my friends picture and their last status message with time.
message,time FROM status
pic_square FROM user
$status = $facebook->api_client->fql_query("SELECT message,time FROM
status WHERE uid in (SELECT uid2 FROM friend WHERE uid1=".$user.")");
echo "<pre>";
print_r($status);
echo "</pre>";
above query returns all statuses, i just want only last status message. Also, how can i modify this query to get pic_square from user table.
Thanks in advance,