Integration new facebook SDK by swift

前端 未结 11 1476
情书的邮戳
情书的邮戳 2020-12-23 09:59

Today i tried to integrate facebook SDK to my Swift app but in the quick start on facebook guide page looks a bit different than my old code. How can i convert OBJ-C code be

11条回答
  •  半阙折子戏
    2020-12-23 10:35

    For swift 5 with latest FBSDK (FBSDKCoreKit 5.2.1)

    func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
            let handled = ApplicationDelegate.shared.application(app, open: url, options: options)
    
            return handled
        }
    

提交回复
热议问题