Post multipart/form with image to facebook

monobrau's picture

Hi all!

I'm stuck with using networktools to post an image to a Facebook album.

Right now I've tried adjusting the composition from http://kineme.net/forum/DevelopingCompositions/FacecomwNetworkTools as a base to post multipart/form data.

The error I get returned is:

(#324) Requires upload file

324 OAuthException



However with a curl call (with the same credentials etc.)

curl -F 'access_token=' -F 'message=Check out my photo' -F 'source=@test.jpg' https://graph.facebook.com/album_id/photos

posts without any problems.

I'm wondering if anyone has experience with this or got some input on what I'm doing wrong?

I've attached the composition and also a trace from a successful curl post.

PreviewAttachmentSize
curl_trace.txt64.06 KB
fb_multipartpost_kineme.qtz75.38 KB

jstrecker's picture
Re: Post multipart/form with image to facebook

In the composition you posted, what happens if you connect the String Printer output to the Image With String input? Right now NetworkTools isn't even running because the cable is disconnected.

If it's still not working, could you email the full working curl request (with album ID and access token) to info@kineme.net?

monobrau's picture
Re: Post multipart/form with image to facebook

Thanks for the reply, i've send an e-mail!

gtoledo3's picture
Re: Post multipart/form with image to facebook

Did this wind up working out? Cool idea (haven't looked at the qtz).

monobrau's picture
Re: Post multipart/form with image to facebook

Yep, works. Need to use the latest networktools beta on ML!