For those who got twitter authentication error:
in your app setting in dev.twitter.com , make sure you fill up callback_url field. Even though it's just a placeholder. Just to verify that you are using browser type app. Also tick "Allow this application to be used to Sign in with Twitter" checkbox. And make sure you have Access_Token generated on "Details" tab
original script ---> https://gist.github.com/rampicos/4320296
how to use ---> http://shareourideas.com/2012/12/18/linkedin-connect-for-appcelerator-titanium/
I modified the original script to be able to work on twitter v1.1 and PIN-based authentication.