Closed rlisowski closed 14 years ago
I have the exact same error....
Bypass for now:
require 'curb'
def publish_fb_photo(path)
c = Curl::Easy.new('https://graph.facebook.com/me/photos')
c.multipart_form_post = true
c.http_post(
Curl::PostField.content('access_token', current_facebook_user.client.access_token),
Curl::PostField.file('source', path))
end
I do it with system command:
res = `curl -F 'access_token=#{current_facebook_user.client.access_token}' \
-F 'source=@file_path.png' \
-F 'message=Caption for the photo' \
https://graph.facebook.com/me/photos`
I'd be happy to take a patch to do this. You could coordinate with the person on https://github.com/jnunemaker/httparty/issuesearch?state=open&q=multipart#issue/52 who is talking about adding multipart support to HTTParty
I'm try to send photo to album. I do it this way:
album is a valid Mogli::Album object but when I do this i get error:
What I do wrong?
I get this error even if do only