facebook login issue - canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

前端 未结 9 819
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 18:13

When I click on login with Facebook button, it is opening safari browser and getting closed immediately. Noticed error on the console.

App delegate method:



        
9条回答
  •  臣服心动
    2020-12-08 18:49

    If you're recompiling with iOS SDK 9.0, add the following to your application's plist if you're using a version of the Facebook SDK v4.6.0 or above:

       LSApplicationQueriesSchemes
       
              fbapi
              fb-messenger-api
              fbauth2
              fbshareextension
       
    

    To prepare the facebook integration supported to iOS 9, go through Facebook Integraion for iOS 9 guidelines

    To check version of facebook SDK, use below line of code:

       print("SDK version \(FBSDKSettings .sdkVersion())")
    

提交回复
热议问题