迅速使用未解决的FbAppCall

时间:2016-02-14 13:18:35

标签: swift facebook

我正在关注firebase教程使用Facebook验证用户 https://github.com/firebase/firebase-simple-login-objc/blob/master/docs/v1/providers/facebook.md 但是,我试图编译此代码,它显示使用未解析的标识符'FBAppCall'的错误

本教程中提供了此代码。

class AppDelegate: UIResponder, UIApplicationDelegate {

...

func application(application: UIApplication, openURL url: NSURL,
    sourceApplication: String!, annotation: AnyObject) -> Bool {

    var wasHandled = FBAppCall.handleOpenURL(url, sourceApplication:sourceApplication)

    // any app-specific handling code here
    return wasHandled
}

}

This is the screenshot

我试图删除fb框架并“重新安装”它因为我认为它与fbsdk版本有关。但是,它仍然无效。

1 个答案:

答案 0 :(得分:1)

我认为FBAppCall已弃用,请改为使用

 return FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)