Skip to content

Instantly share code, notes, and snippets.

@taweili
Created October 12, 2011 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taweili/1281272 to your computer and use it in GitHub Desktop.
Save taweili/1281272 to your computer and use it in GitHub Desktop.
Replace httparty with httmultiparty in Mogli to upload files with Facebook Graph API
facebook_access_token = "..."
client = Mogli::Client.new(facebook_access_token)
client.post("me/photos", nil, {:source => File.open("myphoto.jpg")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment