To tweet using MovieNow, we need two pieces of functionality: Twitter OAuth authentication and status update (tweet).
The workflow of our example is simple: the user authenticates using a Sign In button in the upper-right corner of MovieNow, then we show the username and avatar, and when the user drags a movie to select it (or clicks on iPhone and other drag-disabled devices), we show a tweet form with movie details, that can be posted by clicking on the Tweet button.
To simplify our example we are going to use a Twitter-async PHP library that wraps the Twitter API and provides asynchronous calls: https://github.com/jmathai/twitter-async.
Tip
Jaisen Mathai's Twitter-async documentation can be found at http://www.jaisenmathai.com/articles/twitter-async-documentation.html.