Created
October 12, 2011 13:50
-
-
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
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
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