title: iOS 6 Facebook posting procedure ends up with "remote_app_id does not match stored id" error
body: <p>I'm trying to perform a simple posting procedure:</p>
  
  <pre><code>- (IBAction)directPostClick:(id)sender {
      self.statusLabel.text = @"Waiting for authorization...";
      if (self.accountStore == nil) {
          self.accountStore = [[ACAccountStore alloc] init];
      }   
      ACAccountType * facebookAccountType = [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
      NSArray * permissions = @[@"publish_stream", @"user_checkins", @"publish_checkins", @"user_likes", @"user_videos"];
      NSDictionary * dict = @{ACFacebookAppIdKey : @"My app id here", ACFacebookPermissionsKey : permissions, ACFacebookAudienceKey : ACFacebookAudienceOnlyMe};
      [self.accountStore requestAccessToAccountsWithType:facebookAccountType options:dict completion:^(BOOL granted, NSError *error) {
          __block NSString * statusText = nil;
          if (granted) {
              statusText = @"Logged in";
              NSArray * accounts = [self.accountStore accountsWithAccountType:facebookAccountType];
              self.facebookAccount = [accounts lastObject];
              NSLog(@"account is: %@", self.facebookAccount);
              self.statusLabel.text = statusText;
              [self postToFeed];
          }
          else {
              self.statusLabel.text = @"Login failed";
              NSLog(@"error is: %@", error);
          }
      }];
  } 
  </code></pre>
  
  <p>EDITED:
   <em>The problem is that when I click on alertView's OK button (don't allow doesn't work either) nothing happens!</em> - This behavoir now changed with this
  <a href="https://stackoverflow.com/questions/12671420/ios-6-facebook-posting-procedure-ends-up-with-remote-app-id-does-not-match-stor">iOS 6 Facebook posting procedure ends up with &quot;remote_app_id does not match stored id&quot;</a> So instead of just "nothing happens" I've got an error 
  "The Facebook server could not fulfill this access request: remote_app_id does not match stored id"</p>
  
  <p><img src="https://i.stack.imgur.com/eWwMd.png" alt="enter image description here"></p>
  
  <p>So , it seems that alert view's click handler doing nothing, my completionHandler is never called.
  I do have the similar problem already: <a href="https://stackoverflow.com/questions/12638132/ios-6-social-integration-go-to-settings-issue">iOS 6 Social integration - go to settings issue</a>
  And I think that it is the same problem here. What do you guys think about it?
  P.S.
  I'm running on MAC mini, OS X 10.8.1 with latest xcode 4.5 (4G182) and using iPhone 6.0 simulator.</p>
  
  <p>ADDED:
  By the Bjorn's request adding the <code>postToFeed</code> method although it is never called:</p>
  
  <pre><code>- (void)postToFeed {
      NSDictionary * parameters = @{@"message" : @"Hello world!"};
      NSURL * feedUrl = [NSURL URLWithString:@"https://graph.facebook.com/me/feed"];
      SLRequest * request = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodPOST URL:feedUrl parameters:parameters];
      request.account = self.facebookAccount;
      [request performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) {
          dispatch_async(dispatch_get_main_queue(), ^{
              self.statusLabel.text = @"Posted!";
          });
      }];
  }
  </code></pre>