I followed this guide http://coronalabs.com/blog/2011/12/16/uploading-photos-to-facebook-in-corona/ to upload photo from my project folder to facebook. But it doesn’t seem to work. Does anyone know how to post pictures from your project folder on facebook.
This is what I used and its not working.
if ( “login” == event.phase ) then
local access_token = event.token
--code for tasks following a successful login
local attachment = {
name = “I got stuck with this”,
message = “Just a description of the photo.”,
--link = “http://www.coronalabs.com/links/forum”,
source = { baseDir=system.ResourceDirectory, filename=“Capture1.jpg”, type=“image” },
--caption = “Shadow Quiz”,
--description = “Corona SDK for developing iOS and Android apps with the same code base.”,
--picture = “http://www.coronalabs.com/links/demo/Corona90x90.png”,
actions = print(“attachment”)
}
print(“post command is coming”)
facebook.request( “me/feed”, “POST”,attachment )
end
If I comment the source variable and uncomment the other variables then the “picture” gets posted. But I don’t want to post from an image url. I want to post an image from my project folder.