title: Facebook SDK - iOS6 login popup cannot be dismissed
body: <p>In my iPhone app, I want the user to be able to share a link on Facebook.</p>
  
  <p>When they click "share", I use the following code to login to Facebook using the new SDK 3.1, then use <code>FBRequestConnection</code> in the completion handler (a simple <code>publish_action</code>).</p>
  
  <pre><code>[FBSession openActiveSessionWithPublishPermissions:@[@"publish_actions"] defaultAudience:FBSessionDefaultAudienceFriends allowLoginUI:true completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
  
      // Now call FBRequestConnection to post in the stream
  
  }];
  </code></pre>
  
  <p>When the user has the Facebook app installed, it just delegates the login to the app. However when they don't, it opens the login page in a WebView.</p>
  
  <p>In iOS 5, it opens Mobile Safari:</p>
  
  <p><img src="https://i.stack.imgur.com/iHaZO.png" alt="enter image description here"></p>
  
  <p>My problem is on iOS 6, I get the same flow but in a modal popup instead (on top of my app).</p>
  
  <p><img src="https://i.stack.imgur.com/bBZrH.png" alt="enter image description here"></p>
  
  <p>I have 2 issues with the popup:</p>
  
  <p><strong>1. Closing it</strong></p>
  
  <p>It cannot be cancelled or dismissed. In comparison, the <strong>HelloFacebookSample</strong> app from the SDK has the same popup but with a cross button to close it. </p>
  
  <p><img src="https://i.stack.imgur.com/Nf0fW.jpg" alt="enter image description here"></p>
  
  <p><em>NOTE:</em> now solved thanks to <em>ravi</em>, I was missing the Facebook resource bundle which contains the "close" image.</p>
  
  <p><strong>2. Accepting the permissions</strong></p>
  
  <p>On the second step of the popup (see screens above), pressing <em>Okay</em> doesn't do anything. Pressing the "X" calls the completion handler with an error, which is great, but nothing happens with <em>Okay</em>. Is this the right way to login to Facebook with the SDK 3.1? Am I missing a callback to react to the popup specifically?</p>
  
  <p>Some more clarifications:</p>
  
  <blockquote>
    <p>This only happens in <strong>iOS6</strong> when the Facebook app is <strong>not
    installed</strong> and the Facebook account is <strong>not configured</strong> in the iOS
    settings.</p>
  </blockquote>
  
  <p>Thanks!</p>