search for: my_access_token

Displaying 1 result from an estimated 1 matches for "my_access_token".

2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
...; 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/photos?access_token=#{params[:access_token]}'') File.open(params[@tempfile]) do |jpg| req = Net::...