FBSDKLoginKit - UIApplicationOpenURLOptionsSourceApplicationKey'仅适用于iOS 9.0或更高版本

时间:2018-01-01 20:33:06

标签: ios swift facebook fbsdk fbsdkloginkit

我正在使用FBSDKLoginKit在我的swift项目中提供facebook登录。我的部署目标是9.0,但我继续收到以下警告。非常感谢任何见解。

  • UIApplicationOpenURLOptionsSourceApplicationKey'仅适用于iOS 9.0或更高版本

  • UIApplicationOpenURLOptionsAnnotationKey'仅适用于iOS 9.0或更高版本

  • openURL:options:completionHandler:'仅适用于iOS 10.0或更高版本

在我的 AppDelegate.swift 中,我有以下Facebook登录信息:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    FirebaseApp.configure()
    FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)

    return true
}

func application(_ application: UIApplication,open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
    return FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
}

0 个答案:

没有答案