登录错误:登录到此应用程序时出错。请稍后再试 [英] Login Error: There is an error in logging you into this application. Please try again later

查看:3405
本文介绍了登录错误:登录到此应用程序时出错。请稍后再试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到这个错误。当我尝试用Facebook登录到我的应用程序
当我第一次认证时,它会正常工作。在我解除了我的申请之后,现在试图用Facebook登录,我收到这个错误。

I am getting this error. When I try to sign in with facebook to my app. When I first time authentication it will correctly working. After I unistalled my application and now trying to sign in with Facebook on that I am getting this error.

另一个问题:在device1中进行身份验证并尝试在facebook上登录,同样的错误正在获取。

Another Issue : After authenticate in device1 and try to login with facebook on device2 also same error is getting.

我发现的解决方案:当我从Facebook App Settings中删除App身份验证在上述情况下工作,但这不是一个很好的解决方案,我们如何告诉用户做这个操作?

Solution I Found : when I remove App authentication from Facebook App Settings it is working in above scenario's but this is not an good solution how we can tell to users to do this action?

btnFbLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(accessToken != null) {
                    boolean expires = accessToken.isExpired();
                    if(!expires) {
                        performFbLoginOrSignUp(accessToken);
                    }
                } else {
                    LoginButton loginButton = (LoginButton) findViewById(R.id.login_button);
                    callbackManager = CallbackManager.Factory.create();

                    if (loginButton != null) {
                        loginButton.setReadPermissions("public_profile", "email", "user_friends");

                        if (CommonUtil.isConnectingToInternet(LoginActivity.this)) {
                            loginButton.performClick();

                            loginButton.setPressed(true);

                            loginButton.invalidate();

                            loginButton.registerCallback(callbackManager, mCallBack);

                            loginButton.setPressed(false);

                            loginButton.invalidate();
                        } 
                    }
                }
            }
        });

在Facebook的例子中也有一个问题:
Facebook示例的GitHub链接

In Facebook example also having an issue : GitHub link of Facebook example

重现步骤

Steps to reproduce :


  1. 启动应用程序使用Facebook登录验证FB配置文件。

  1. Launch the app Login with Facebook Authenticate FB profile.

卸载应用程序并安装

现在尝试使用Facebook登录。

Now try to Login with Facebook.


推荐答案

我也面对这个问题。在Facebook上更新你的密钥哈希

I also Face this problem .Update your key hash on Facebook

这篇关于登录错误:登录到此应用程序时出错。请稍后再试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆