iOS 9 Facebook SDK Login/Share

后端 未结 3 1628
执笔经年
执笔经年 2020-12-30 10:12

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         


        
相关标签:
3条回答
  • 2020-12-30 10:40

    Yes, it is by design on iOS 9, but we can easily work around it!

    let dialog = FBSDKShareDialog()
    dialog.mode = .Native
    if !dialog.canShow() {
        self.mode = .Automatic
    }
    

    Yay!

    0 讨论(0)
  • 2020-12-30 10:54

    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!

    0 讨论(0)
  • 2020-12-30 10:55

    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.

    0 讨论(0)
提交回复
热议问题