O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

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

Setting Up Twitter API Calls

When we first set up our tweet-sending button, we found the documentation for the Social framework and made use of the SLComposeViewController. To start using the rest of Twitter’s features (or any other social network supported by iOS), we’ll need to use another class in this framework. SLRequest lets us call the various social networks’ web APIs by just providing a URL, whose contents vary by service and are documented at their various developer sites (such as http://dev.twitter.com). For Twitter, we have an additional detail to work through first: as of May 2013, all Twitter requests need to be authenticated, meaning they need to come from a signed-in Twitter user.

Fortunately, iOS allows a user to sign in to ...

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