guys,
I am trying to upload a photo onto the wall… how do I do it?
I can upload photos to albums… i can upload a picture with a http url to the feed…
but how can i upload a picture from my resources directory onto the feed?
I am using the below code… any help is appreciated
[code]
local attachment = {
name = “Developing a Facebook Connect app using the Corona SDK!”,
link = “http://developer.anscamobile.com/forum”,
caption = “Link caption”,
description = “Corona SDK for developing iOS and Android apps with the same code base.”,
picture = {baseDir=system.ResourceDirectory, filename=“test.jpg”, type=“image”},
actions = json.encode( { { name = “Learn More”, link = “http://anscamobile.com” } } )
}
facebook.request( “me/feed”, “POST”, attachment )
[/code] [import]uid: 67619 topic_id: 24199 reply_id: 324199[/import]