Skip to content

Instantly share code, notes, and snippets.

@boboboa32
Created February 18, 2013 08:05
Show Gist options
  • Save boboboa32/4975794 to your computer and use it in GitHub Desktop.
Save boboboa32/4975794 to your computer and use it in GitHub Desktop.
Using the iOS Built-In Twitter Feature
local function tweetCallback( event )
if ( event.action == "cancelled" ) then
print( "User cancelled" )
else
print( "Thanks for the tweet!" )
end
end
local options = {
message = "Hello Twitter world!",
listener = tweetCallback,
url = { "http://coronalabs.com", "http://apple.com" }
}
native.showPopup( "twitter", options )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment