Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Twitter

Caleb Davenport edited this page Jan 22, 2014 · 11 revisions

The Twitter provider currently comes in two flavors: system and web. Both providers require consumer_key and consumer_secret to be present.

System

The system provider interacts with Accounts.framework and Social.framework to provide authentication. Install the system provider by adding pod 'SimpleAuth/Twitter' to your Podfile. Its provider type is "twitter".

If multiple accounts are present, it creates a UIActionSheet and passes it to the block specified by SimpleAuthPresentInterfaceBlockKey. By default, that block shows the action sheet on [[[UIApplication sharedApplication] delegate] window]

Examples

SimpleAuth.configuration[@"twitter"] = @{};
[SimpleAuth authorize:@"twitter" completion:^(id responseObject, NSError *error) {}];
Clone this wiki locally