O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Posting to Twitter in iOS

Up until iOS5, the process of sharing to Facebook was a long-winded one, just like we've done in the last few recipes: setting up Facebook apps, writing code to implement login and authorization, and finally posting to a wall.

Thankfully, in iOS support for Facebook and Twitter is now baked into the OS via the Settings app. A user can connect to Twitter and Facebook once, and applications can then ask to access their social accounts. Once granted, an app can access the social accounts to post content on behalf of the user. If you've ever clicked a share button in iOS and seen something like this, you're using the built-in Twitter/Facebook support.

This means we can replace most of—not all—the code in the previous recipes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required