As shown in previous sections, Twitter has been easier to interact with than the more complex Facebook APIs, due mainly to the multiple permission hierarchy implemented with Facebook. Accessing a user’s Twitter timeline begins in the same fashion as posting new a tweet; references to
ACAccountType are created.
ACAccountStore *account = [[ACAccountStore alloc] init];ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier: ACAccountTypeIdentifierTwitter];
Continuing in the same fashion as posting a new tweet, a call to
requestAccessToAccountWithType: is performed on the account object. Basic error handling is also set up here.
[account requestAccessToAccountsWithType:accountType ...