Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 无法使用Facebook SDK 9.2有限模式登录Firebase_Swift_Facebook_Firebase Authentication - Fatal编程技术网

Swift 无法使用Facebook SDK 9.2有限模式登录Firebase

Swift 无法使用Facebook SDK 9.2有限模式登录Firebase,swift,facebook,firebase-authentication,Swift,Facebook,Firebase Authentication,我正在尝试以受限模式登录,但出现错误: Bad access token: code 190, bad signature 登录并启用跟踪:。按预期工作 有什么办法吗? 谢谢 确保您正在使用旧的Facebook登录而不是Facebook登录进行游戏(),您可以在中的“产品”下进行检查。如果你的应用程序类型是“游戏服务”,那么你没有旧的Facebook登录作为产品,你需要删除你的应用程序并创建新的应用程序 目前Firebase只验证旧的Facebook登录名,有一个功能请求,但它与Firebas

我正在尝试以受限模式登录,但出现错误:

Bad access token: code 190, bad signature
登录并启用跟踪:。按预期工作

有什么办法吗? 谢谢


确保您正在使用旧的Facebook登录而不是Facebook登录进行游戏(),您可以在中的“产品”下进行检查。如果你的应用程序类型是“游戏服务”,那么你没有旧的Facebook登录作为产品,你需要删除你的应用程序并创建新的应用程序

目前Firebase只验证旧的Facebook登录名,有一个功能请求,但它与Firebase后端更相关

临时解决方法是通过升级到GCIP来配置通用OIDC提供程序。() 您可以使用OAuthProvider使用Firebase Auth SDK登录。 但他们有不同的计费结构,因为每个MAU收取少量费用

    let config = LoginConfiguration(permissions: [.publicProfile], tracking: .limited)!
    LoginManager().logIn(configuration: config) {            
        switch $0 {
        case .success(_, _, let token):
            let credential = FacebookAuthProvider.credential(withAccessToken: token?.tokenString ?? AuthenticationToken.current?.tokenString)
            FirebaseAuthHelper.AuthApp().signIn(with: credential) { (_, error) in
                // Error
            }

        case .cancelled:
        case .failed(let error):
        }
    }