Sending tweets
The Twitter functionality has not been built into the core SDK of Titanium, which is surprising given that Facebook is. Nevertheless, thanks to the wide use of JavaScript, there are routines out there that can help. For this example we will make use of the social.js
script to send Tweets. The script can be downloaded from https://gist.github.com/myleftboot/5093893.
Tip
There are many copies of social.js
out there. Most reference version 1 of the Twitter API. This has now been depreciated. Make sure you use one that references version 1.1 of the Twitter API such as the one listed at the preceding URL.
Before we can send a Tweet from the app, we need to create the app on Twitter.