GGTwitter makes it very easy to authorise your player with Twitter and post messages. Authorisation data is stored so that the user only has to login the first time.
oAuth.lua from here - https://github.com/breinhart/Corona-SDK-Tweet-Media/blob/master/utils/oAuth.lua multipartForm.lua from here - https://github.com/breinhart/Corona-SDK-Tweet-Media/blob/master/utils/multipartForm.lua
local GGTwitter = require( "GGTwitter" )
local twitter
local listener = function( event )
if event.phase == "authorised" then
end
end
twitter = GGTwitter:new( "XXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", listener )
twitter:authorise()
twitter:post( "Hello, world!" )
twitter:post( "Check out my photo!", "image.png" )
print( twitter:isAuthorised() )
twitter:follow( "GlitchGames" )
twitter:deauthorise()
twitter:destroy()
twitter = nil
Initial release