title: openActiveSessionWithPublishPermissions show login form twice
body: <p>I'm trying to implement post wall using objective-c but when i do request new permission to 'publish_actions' with action session, the FB SDK login form is show again.</p>
  
  <p>I'm looking for this tutorial: <a href="https://developers.facebook.com/docs/ios/publish-to-feed-ios-sdk/" rel="nofollow">https://developers.facebook.com/docs/ios/publish-to-feed-ios-sdk/</a></p>
  
  <p>In my application flow is basically this:</p>
  
  <pre><code>void (^completionHandler)(FBSession*, NSError*) = ^(FBSession*session, NSError*error){
  
      if (session.isOpen &amp;&amp; !error)
      {
          [FBWebDialogs presentFeedDialogModallyWithSession:session
                                                 parameters:params
                                                    handler:handler];
      }
  };
  
  // abrie o dialog
  BOOL isFBIntegration = [SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook];
  
  if ([FBSession.activeSession.permissions indexOfObject:@"publish_actions"] == NSNotFound)
  {
      if(isFBIntegration)
      {
          [[FBSession activeSession] requestNewPublishPermissions:@[@"publish_actions"]
                                                  defaultAudience:FBSessionDefaultAudienceFriends
                                                completionHandler:completionHandler];
      }
      else
      {
          [FBSession openActiveSessionWithPublishPermissions:@[@"publish_actions"]
                                             defaultAudience:FBSessionDefaultAudienceEveryone
                                                allowLoginUI:YES
                                           completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
                                               completionHandler(session, error);
                                           }];
      }
  }
  else
  {
      completionHandler(FBSession.activeSession, nil);
  }
  </code></pre>
  
  <p>The user is already logged in because I do ask him to log when it enters the application:</p>
  
  <p><strong>HOME</strong></p>
  
  <pre><code>    [FBSession openActiveSessionWithReadPermissions:@[@"basic_info, user_friends, friends_interests"]
                                         allowLoginUI:YES
                                    completionHandler:nil];
  </code></pre>
  
  <p>When Facebook is native integration, all right, but when no, openActiveSessionWithPublishPermissions show login form again.</p>
  
  <p>thank you.</p>