Convert [display.captureScreen] to [multipart/form-data]?

Hopefully someone can assist, I am trying to allow my users to upload a photo of their screen to Facebook. I’ve been successful at allowing them to post to their wall just not the ability to upload an image.

This is what I am doing currently:

[lua]screenCap = display.captureScreen (true)

local attachment = {
source = screenCap,
message = “imageMessage”
}

facebook.request ( “me/photos”, “POST”, attachment )[/lua]

I’m pretty sure this is how to post the photo (as I’ve done it this way outside of Corona successfully) but I think the issue is the image is in the wrong format.

Any ideas? [import]uid: 11554 topic_id: 4729 reply_id: 304729[/import]

No help? Nobody has ever uploaded a photo to Facebook before? [import]uid: 11554 topic_id: 4729 reply_id: 15107[/import]

I just tried an alternate method, using display.save to save the image to the local directory, then pass that through as the value of ‘file’ prior to calling “me/photos” and got nothing.

I’m begging here, anyone? [import]uid: 11554 topic_id: 4729 reply_id: 15109[/import]

Were you able to get this to work by any chance? I’m trying to do something similar w/ out any luck… Thanks! [import]uid: 5527 topic_id: 4729 reply_id: 23052[/import]

see if you can get this working

http://developer.anscamobile.com/forum/2011/01/31/uploading-binary-file-http

check my post at the end. that shows you how to encode an image. i havent tried sending it to a php file etc [import]uid: 6645 topic_id: 4729 reply_id: 23072[/import]

i don’t think it’s implemented. i added a feature request here:
http://developer.anscamobile.com/forum/2011/03/23/binary-mime-attachment-facebookrequest [import]uid: 6645 topic_id: 4729 reply_id: 29654[/import]