Created
May 7, 2010 01:18
-
-
Save nov/392901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'fb_graph' | |
ACCESS_TOKEN = "..." | |
begin | |
me = FbGraph::User.me(ACCESS_TOKEN) | |
album = me.albums.first | |
photo = album.photo!( | |
:access_token => ACCESS_TOKEN, | |
:image => File.new(File.join(File.dirname(__FILE__), 'nov.gif')), | |
:message => 'Hello, where is photo?' | |
) | |
puts photo.inspect | |
rescue => e | |
puts e.body | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Umm, this error message isn't helpful :(
As you mentioned, rest-client gem seems had an issue.
http://github.com/archiloque/rest-client/issues/issue/17
Can you try to install newest rest-client master branch?
It might solve your problem.
http://gist.github.com/393345