Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Last active December 10, 2015 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhkeller/4377632 to your computer and use it in GitHub Desktop.
Save mhkeller/4377632 to your computer and use it in GitHub Desktop.
FQL Query for friend list information
$this->api->api(array('method'=>'fql.query','query'=>"SELECT uid,name,first_name,middle_name,last_name,pic_square,hometown_location,current_location,profile_url,email,website FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"));
https://graph.facebook.com/fql?q=SELECT%20uid,name,first_name,middle_name,last_name,pic_square,hometown_location,current_location,profile_url,email,website%20FROM%20user%20WHERE%20uid%20IN%20(SELECT%20uid2%20FROM%20friend%20WHERE%20uid1%20=%20me())&access_token=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment