Skip to content

Instantly share code, notes, and snippets.

@nov
Created September 7, 2011 12:33
Show Gist options
  • Save nov/1200443 to your computer and use it in GitHub Desktop.
Save nov/1200443 to your computer and use it in GitHub Desktop.
fb_graph 2.1.1 new features
# Friend Requests
me = FbGraph::User.me(USER_ACCESS_TOKEN)
me.friend_requests # => Array of FbGraph::FriendRequest
# Checking if a user is an admin of a Page
user = FbGraph::User.new('matake')
page = FbGraph::Page.new('FbGraph')
page.admin?(user, :access_token => PAGE_ACCESS_TOKEN) # => true/false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment