public
Last active

  • Download Gist
fb_graph_fql_sample.rb
Ruby
1 2 3 4 5 6 7
require 'fb_graph'
 
array = FbGraph::Query.new(
'SELECT name FROM user WHERE uid = me()'
).fetch(ACCESS_TOKEN)
 
p array

Running the snippet above I get the following error: /Users/Andre/.rvm/gems/ruby-1.9.3-p429/gems/fb_graph-2.7.6/lib/fb_graph/query.rb:24:in `[]': can't convert Symbol into Integer (TypeError)

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

fetch(access_token: ACCESS_TOKEN)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.