I am using the following code (shown in WWDC 2012 video):
self.accountStore = [[ACAccountStore alloc] init]; ACAccountType *facebookAccountType = [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; [self.accountStore requestAccessToAccountsWithType:facebookAccountType withCompletionHandler:^(BOOL granted, NSError *e) { if (granted) { NSArray *accounts = [self.accountStore accountsWithAccountType:facebookAccountType]; self.facebookAccount = [accounts lastObject]; } else {
I also added the NSDictionary file to my .plist :

So my problem is that I get the following exception:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Access options are required for this account type.'
I tried with this ACAccountTypeIdentifierTwitter and ACAccountTypeIdentifierSinaWeibo . I do not get any exceptions, although they always return granted == NO
Peres
source share