Skip to content

Instantly share code, notes, and snippets.

@Kosmas
Created September 22, 2011 11:52
Show Gist options
  • Save Kosmas/1234616 to your computer and use it in GitHub Desktop.
Save Kosmas/1234616 to your computer and use it in GitHub Desktop.
getting friends of current user
require 'fb_graph'
array = FbGraph::Query.new(
'SELECT name,pic FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()'
).fetch(ACCESS_TOKEN)
p array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment