In my iPhone app, I want the user to be able to share the link on Facebook.
When they click "share", I use the following code to login to Facebook using the new SDK 3.1, then use the FBRequestConnection in the completion handler (simple publish_action ).
[FBSession openActiveSessionWithPublishPermissions:@[@"publish_actions"] defaultAudience:FBSessionDefaultAudienceFriends allowLoginUI:true completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
When the user has the Facebook application installed, he simply delegates the entrance to the application. However, when they do not, it opens the login page to the WebView.
In iOS 5, Mobile Safari opens:

My problem is in iOS 6, I get the same stream, but in a modal popup menu (on top of my application).

I have 2 problems with a popup:
1. Closure
It cannot be canceled or rejected. For comparison, the HelloFacebookSample application from the SDK has the same pop-up window, but with a cross button to close it.

NOTE: now resolved thanks to ravi, I did not have enough resource on the Facebook network, which contains a "close" image.
2. Acceptance of permissions
At the second stage of the pop-up window (see the screens above), pressing the OK button does nothing. Pressing the "X" button causes the completion handler to fail, which is fine, but nothing happens with Okay. Is this the right way to log in to Facebook with the SDK 3.1? Am I missing a callback to respond to a popup?
Additional explanations:
This only happens in iOS6 when the Facebook application is not installed and the Facebook account is not configured in iOS settings.
Thanks!