I have run into an issue using the latest Facebook SDK (4.6) on iOS 9. To authorize a user, I use the FBSDKLoginManager. I have tried setting this:
loginMa
let dialog = FBSDKShareDialog()
dialog.mode = .Native
if !dialog.canShow() {
self.mode = .Automatic
}
Yay!
Use SLComposerViewController for Fb sharing. It will use your ios device default Facebook sdks login or your installed application login.
Below is the reference for this: Tutorial for SLComposeViewController sharing
Hope this helps!
This is by design.
In FB SDK v4.6 and v3.24, we default to Safari View Controller rather than fast-app-switching to the native Facebook app. In iOS 9 the fast-app-switch flow generates two interstitials "ExampleApp would like to open Facebook" and "Facebook would like to open ExampleApp".
For the hundreds of millions of people who are signed into Safari on iOS, they have an awesome experience.