Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.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身份验证令牌无法创建Firebase身份验证_Swift_Facebook_Authentication_Firebase_Firebase Authentication - Fatal编程技术网

Swift Facebook身份验证令牌无法创建Firebase身份验证

Swift Facebook身份验证令牌无法创建Firebase身份验证,swift,facebook,authentication,firebase,firebase-authentication,Swift,Facebook,Authentication,Firebase,Firebase Authentication,我正在尝试使用此代码登录Firebase以生成Firebase身份验证凭据 func signIn(fromViewController controller: UIViewController) -> Promise<AuthCredential> { return wrap { completion in self.loginManager.logIn(withReadPermissions: ["public_profile"],

我正在尝试使用此代码登录Firebase以生成Firebase身份验证凭据

func signIn(fromViewController controller: UIViewController) -> Promise<AuthCredential> {

        return wrap { completion in
            self.loginManager.logIn(withReadPermissions: ["public_profile"],
                                    from: controller,
                                    handler:completion)
            }
            .then { result -> AuthCredential in

                if result.isCancelled {
                    throw NSError.cancelledError()
                }

                let token = result.token!
                return FacebookAuthProvider.credential(withAccessToken:token.tokenString)
        }
    }
我在facebook开发者区域设置了我的应用程序,并将应用程序id和密钥剪切粘贴到firebase中的facebook身份验证设置中。所以我现在很困惑我可能做错了什么

有人遇到过这个问题吗

您是否在Firebase控制台上启用了Facebook

在facebook应用程序的高级设置中,我打开了“客户端是否嵌入了应用程序机密?

关掉它,一切都正常了

您是否在Firebase控制台上启用了Facebook

在facebook应用程序的高级设置中,我打开了“客户端是否嵌入了应用程序机密?

关掉它,一切都正常了


先生,你是一个目光冷酷的代码骑师!这就解决了。没问题,我们很乐意帮忙。工作得很有魅力!!先生,你是个铁石心肠的代码骑师!这就解决了。没问题,我们很乐意帮忙。工作得很有魅力!!
ERROR Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={error_name=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information., NSUnderlyingError=0x6040001cb050 {Error Domain=FIRAuthInternalErrorDomain Code=3 "(null)" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={
    code = 400;
    errors =     (
                {
            domain = global;
            message = "Unsuccessful debug_token response from Facebook: {\"error\":{\"message\":\"(#100) You must provide an app access token or a user access token that is an owner or developer of the app\",\"type\":\"OAuthException\",\"code\":100,\"fbtrace_id\":\"CCGlFkNF1pl\"}}";
            reason = invalid;
        }
    );
    message = "Unsuccessful debug_token response from Facebook: {\"error\":{\"message\":\"(#100) You must provide an app access token or a user access token that is an owner or developer of the app\",\"type\":\"OAuthException\",\"code\":100,\"fbtrace_id\":\"CCGlFkNF1pl\"}}";    
}}}}