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

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

问题描述

我收到此错误.当我尝试使用 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.

另一个问题:在设备 1 中进行身份验证并尝试在设备 2 上使用 Facebook 登录后,也会出现同样的错误.

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

我找到的解决方案:当我从 Facebook 应用程序设置中删除应用程序身份验证时,它在上述情况下工作,但这不是一个好的解决方案,我们如何告诉用户执行此操作?

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

重现步骤:

  1. 启动应用程序使用 Facebook Authenticate FB 个人资料登录.

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

卸载应用程序并重新安装.

Un_install the app and install again.

现在尝试使用 Facebook 登录.

Now try to Login with Facebook.

推荐答案

我也面临这个问题.在 Facebook 上更新您的密钥哈希

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

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

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