Closed gozup closed 11 years ago
picture = FbGraph::User.new('me/picture', :access_token => token).fetch
should be
picture = FbGraph::User.me(token).picture(redirect: false)
ps. If you don't set "redirect: false", you'll get picture url without any API calls.
picture_url = FbGraph::User.new(username).picture # => "https://graph.facebook.com/#{username}/picture"
https://developers.facebook.com/docs/reference/api/using-pictures/
also
user = FbGraph::User.new('me/friends?fields=id', :access_token => token).fetch
should be
user = FbGraph::User.me(token).friends(fields: :id)
Hi,
I receive an "Unparsable Response" when trying this:
And when calling on "me/friends" it works
The method "me/picture" exists. You can test it here: http://developers.facebook.com/tools/explorer
Any ideas? Cheers