I am using this code:
local listener = function( event ) if event.phase == "authorised" then twitter:post( descr ) print("twitter!") else native.showAlert(ERROR, event.phase , {OK}) end end twitter = GGTwitter:new( "xxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", listener ) twitter:authorise()
The listener gets triggered but unfortunately the phase is not “authorised”.
Instead the native alert displays “Failed”.
I have created the game on twitter developer and entered the right key and secret in the above code.
Anyone managed this to work on Android?
What am I missing?
Thank you for your help!