hi,
related to this:
http://developer.anscamobile.com/forum/2011/03/23/how-create-multipart-mime-data
i tried adding the data from a binary read of a .jpg file into a facebook request to “me/photos”
[lua]facebook.request(“me/photos”, “POST”, { message=“hello”, source=myBinaryReadOfJPG }[/lua]
but could not get facebook to accept it.
I don’t think this is implemented in Corona yet. otherwise I am doing something wrong. please advise.
maybe you do not set the “Content-Type” in the headers for the data chunk?
regards
J
[import]uid: 10744 topic_id: 8231 reply_id: 308231[/import]
i think this would make sense but it doesn’t work so i guess it isn’t implemented…
[lua]local path = system.pathForFile( “image.jpg” )
local imgfile = io.open( path, “rb” )
local imgData = ltn12.source.file(imgfile)
local args= {
message=“hello”,
source = imgData
}
facebook.request(“me/photos”, “POST”, args)[/lua]
the response is:
{"error":{"type":"OAuthException","message":"(#324) Requires upload file"}}
it would still be good if there was an encoder for a display group that didn’t rely on saving to disk first though
thanks
j [import]uid: 10744 topic_id: 8231 reply_id: 29667[/import]
any progress been made on this problem?
This is functionality that is “must have”. [import]uid: 40100 topic_id: 8231 reply_id: 36416[/import]
What about mime encoding the image (like the binary upload example)?
All that’s needed is the oAuth token ID after that, right?
[import]uid: 13784 topic_id: 8231 reply_id: 49543[/import]
+1 [import]uid: 44013 topic_id: 8231 reply_id: 52477[/import]
big
August 25, 2011, 7:52am
6
Any news on this topic?
Now I can post message on Facebook wall, and also can post message with photo with link, but I can’t upload a photo.
I had try several method but failed all the time.
Is post photo to “me/photos” implemented into Facebook library?
Any suggestion is welcome.
Thanks
big [import]uid: 28337 topic_id: 8231 reply_id: 52691[/import]
+1 [import]uid: 5022 topic_id: 8231 reply_id: 67057[/import]
Any official word on this? Posting pictures to Facebook doesn’t currently work. [import]uid: 77912 topic_id: 8231 reply_id: 92169[/import]
Danny
March 11, 2012, 4:02pm
9
Have you guys tried this ? http://blog.anscamobile.com/2011/12/uploading-photos-to-facebook-in-corona/ [import]uid: 84637 topic_id: 8231 reply_id: 92652[/import]
Tried the above link but when i sign in then only a blank white page is displayed ,
can any one help ?
How to upload static photo facebook wall or anywhere .
Thnx
Ved [import]uid: 95790 topic_id: 8231 reply_id: 94424[/import]
It’s all working for me, was an issue with the actual photo rather than a problem with the code. [import]uid: 77912 topic_id: 8231 reply_id: 94428[/import]
Thanx for replying so soon
How can i know that is the photo creating problem or something else ?
which type of photo to upload ? .jpg or .png ? [import]uid: 95790 topic_id: 8231 reply_id: 94435[/import]
I am able to upload an image now but the image is Blank image , i tried three different sizes in image, but all are blank , I can the image blank the very size i uploaded and the description also …
Can someone please help ASAP
Thanx [import]uid: 95790 topic_id: 8231 reply_id: 95435[/import]
Hi,
any solution to this issue? I still get an error #324 if I attempt to upload a picture (jpg) from system.DocumentsDirectory
Thanks
Hi,
any solution to this issue? I still get an error #324 if I attempt to upload a picture (jpg) from system.DocumentsDirectory
Thanks