Created
December 10, 2012 14:05
-
-
Save moustafasamir/4250738 to your computer and use it in GitHub Desktop.
get facebook friends with picture using Koala
This file contains 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
def get_facebook_friends(access_token) | |
@graph = Koala::Facebook::API.new(access_token) | |
friends = @graph.get_connections("me", "friends?fields=id,name,picture.type(large)") | |
return friends | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment