title: iOS requestAccessToAccountsWithType is Not Showing Permission Prompt / NSAlert
body: <p>It is my understanding that when I invoke <code>[ACAccountStore requestAccessToAccountsWithType:options:completion]</code>, the user is supposed to see an UIAlert that asks them if they grant permission to my app. </p>
  
  <p>When I run this code, there is never a prompt and the <code>granted</code> variable is always "false"</p>
  
  <pre><code>-(void)myfunction { 
  if (!_accountStore) _accountStore = [[ACAccountStore alloc] init];
  
      ACAccountType *fbActType = [_accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
  
  
      NSDictionary *options = [[NSDictionary alloc] initWithObjectsAndKeys:
                               (NSString *)ACFacebookAppIdKey, @"##########",  
                               (NSString *)ACFacebookPermissionsKey, [NSArray arrayWithObject:@"email"],  
                               nil];
  
  
      [_accountStore requestAccessToAccountsWithType:fbActType options:options completion:^(BOOL granted, NSError *error) {
                                                  NSLog(@"Home.m - getFBDetails - Check 2");
                                                  if (granted == YES) {
                                                      NSLog(@"Success");
                                                      NSArray *accounts = [_accountStore accountsWithAccountType:fbActType];
                                                      _facebookAccount = [accounts lastObject];                                                    
                                                      [self me];
                                                 } else {
                                                      NSLog(@"ERR: %@ ",error);
                                                      // Fail gracefully...
                                                }
              }
       ];
  
  }
  </code></pre>
  
  <p>And I get the Error: <code>ERR: Error Domain=com.apple.accounts Code=8 "The operation couldn’t be completed. (com.apple.accounts error 8.)"</code></p>
  
  <p><strong>Update:</strong> I did some testing and if I run with using <code>ACAccountTypeIdentifierTwitter</code>, I get the prompt to connect to my Twitter accounts, so I am supposing it is something with my Facebook settings ...</p>