Is there any chance to post Facebook photos directly from Corona?
I am trying with the method below (simplified code example), and the only response I get is {“data”:[]} or an empty string.
[Lua]
function listener(event)
if event.type == “session” and event.phase == “login” then
local attachment = {
message = “Hello, World!”,
source = {
baseDir = system.DocumentsDirectory,
filename = “photo.jpg”,
type = “image”,
},
}
facebook.request(“me/photos”, attachment)
end
end
[/Lua]
The workaround posted in the forums months ago to avoid the “HTTP 400 / com.facebook.sdk error 5” error still produces this very error.