title: Get facebook user details in ios 6 sdk?
body: <p>How to retrieve facebook user details with ios 6 inbuilt facebook sdk? I tried few examples, but couldn't get work.</p>
  
  <pre><code>- (void) getFBDetails {
  
  if(!_accountStore)
      _accountStore = [[ACAccountStore alloc] init];
  
  ACAccountType *facebookTypeAccount = [_accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
  
  [_accountStore requestAccessToAccountsWithType:facebookTypeAccount
                                         options:@{ACFacebookAppIdKey: @"514284105262105", ACFacebookPermissionsKey: @[@"email"]}
                                      completion:^(BOOL granted, NSError *error) {
                                          if(granted){
                                              NSArray *accounts = [_accountStore accountsWithAccountType:facebookTypeAccount];
                                              _facebookAccount = [accounts lastObject];
                                              NSLog(@"Success");
  
                                              [self me];
  
                                          }else{
                                              // ouch
                                              NSLog(@"Fail");
                                              NSLog(@"Error: %@", error);
                                          }
                                      }];
  
  
  }
  
  
  - (void)me{
  NSURL *meurl = [NSURL URLWithString:@"https://graph.facebook.com/me"];
  
  SLRequest *merequest = [SLRequest requestForServiceType:SLServiceTypeFacebook
                                            requestMethod:SLRequestMethodGET
                                                      URL:meurl
                                               parameters:nil];
  
  merequest.account = _facebookAccount;
  
  [merequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) {
      NSString *meDataString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
  
      NSLog(@"%@", meDataString);
  
  }];
  </code></pre>
  
  <p>}</p>
  
  <p>But this fails to grab data from facebook. My app id is correct.</p>
  
  <p>This the error message I got</p>
  
  <pre><code>Error: Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: no stored remote_app_id for app" UserInfo=0x1d879c90 {NSLocalizedDescription=The Facebook server could not fulfill this access request: no stored remote_app_id for app} 
  </code></pre>