Skip to content

Instantly share code, notes, and snippets.

@cgallagher
Created March 15, 2011 11:41
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 cgallagher/870624 to your computer and use it in GitHub Desktop.
Save cgallagher/870624 to your computer and use it in GitHub Desktop.
get facebook friends
get_friend_list: function(facebook_id, limit, order, callback)
{
var friends = FB.Data.query("SELECT first_name, pic_square, uid, last_name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1={0}) ORDER BY {1} LIMIT {2}", parseInt(facebook_id), order, limit);
friends.wait(function(friends){
callback(friends);
});
},
@MaxDesignZ
Copy link

how can i using with code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment