Created
March 15, 2011 11:41
-
-
Save cgallagher/870624 to your computer and use it in GitHub Desktop.
get facebook friends
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how can i using with code?