Displaying 1 result from an estimated 1 matches for "rackmultipart20110818".
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
...EZYMAnBI.jpg",
@content_type="application/octet-stream", @headers="Content-Disposition:
form-data; name=\"image\";
filename=\"/home/user/public/direct/fb_images/neEZYMAnBI.jpg\"\r\nContent-Type:
application/octet-stream\r\n",
@tempfile=#<File:/app/tmp/RackMultipart20110818-1-18qnwtj>>,
"method"=>"post", "access_token"=>"my_access_token", "format"=>"json"}
I tried to use:
require ''net/http/post/multipart''
url =
URI.parse(''https://graph.facebook.com/me/phot...