Email would be like;
[lua]local function emailPic ()
local options =
{
–to = “john.doe@somewhere.com”,
subject = “This is a subject”,
body = “Hey look it’s an image from a Corona app”,
attachment = { system.ResourceDirectory,
filename=fileNameHere, type=“image” },
}
native.showPopup(“mail”, options)
end[/lua]
Make sure you change the file name and location (if not system.ResourceDirectory) and uncomment the “to” line if you want to specify an email address yourself for whatever reason.
Facebook we already have a blog post on if you try searching; http://blog.anscamobile.com/2011/12/uploading-photos-to-facebook-in-corona/
Twitter I haven’t experimented with though the sample was updated not long ago - you would need to edit it as I don’t believe it has built in support for adding media. [import]uid: 52491 topic_id: 27041 reply_id: 109876[/import]