Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'fb_graph'
array = FbGraph::Query.new(
'SELECT name FROM user WHERE uid = me()'
).fetch(ACCESS_TOKEN)
p array
@betogess506

This comment has been minimized.

Copy link

betogess506 commented Jul 5, 2013

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)

@gr8bit

This comment has been minimized.

Copy link

gr8bit commented Jul 16, 2013

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

fetch(access_token: ACCESS_TOKEN)
@alex-zige

This comment has been minimized.

Copy link

alex-zige commented Jan 20, 2015

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
You can’t perform that action at this time.