Skip to content

Instantly share code, notes, and snippets.

@nov
Created December 23, 2010 12:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nov/752914 to your computer and use it in GitHub Desktop.
Save nov/752914 to your computer and use it in GitHub Desktop.
require 'fb_graph'
array = FbGraph::Query.new(
'SELECT name FROM user WHERE uid = me()'
).fetch(ACCESS_TOKEN)
p array
@gr8bit
Copy link

gr8bit commented Jul 16, 2013

You need to call the "fetch" method with a hash

fetch(access_token: ACCESS_TOKEN)

@alex-zige
Copy link

FbGraph::InvalidRequest: OAuthException :: (#12) fql is deprecated for versions v2.1 and higher

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