How to Implement Facebook, Twitter and E-mail?

Hello

I am using CoronaSDK 2012.828

The app idea is a post cards, and I want the user to be able to send that card in the app to others through (Facebook, Twitter and E-mail)

Please tell me how to insert the codes to the build folder/files?

Thanx

[import]uid: 97925 topic_id: 27041 reply_id: 327041[/import]

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]