Created
February 18, 2013 08:05
-
-
Save boboboa32/4975794 to your computer and use it in GitHub Desktop.
Using the iOS Built-In Twitter Feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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