Login Error: There is an error in logging you into this application. Please try again later

后端 未结 17 2759
野的像风
野的像风 2020-11-29 18:52

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

相关标签:
17条回答
  • 2020-11-29 19:19

    For me, this exact error was due to invalid permission strings. Happened on iOS and Android.

    0 讨论(0)
  • 2020-11-29 19:19

    The problem for me is really with the hash key, It's not valid.

    I had exactly the same problem and it was very hard to diagnose. The reason is that Facebook doesn't check the hash key at first login and it seems that the key is correct, but indeed it's not. Second, the error message is simply an idiocracy. Third is the resolution: try the following link, it helped me.

    Better instructions to generate a valid hash key

    0 讨论(0)
  • 2020-11-29 19:25

    This is the issue from Facebook. Confirmed by Facebook Team.

    We will Expected Resolution: within 3 days

    0 讨论(0)
  • 2020-11-29 19:25

    I refer this,

    https://developers.facebook.com/docs/android/getting-started

    or just add below code in onCreate() method, which will return key hash.

     // Add code to print out the key hash
    try {
        PackageInfo info = getPackageManager().getPackageInfo(
                "com.facebook.samples.hellofacebook", 
                PackageManager.GET_SIGNATURES);
        for (Signature signature : info.signatures) {
            MessageDigest md = MessageDigest.getInstance("SHA");
            md.update(signature.toByteArray());
            Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
            }
    } catch (NameNotFoundException e) {
    
    } catch (NoSuchAlgorithmException e) {
    
    }
    

    Add above code to retrieve key,that key you can store

    https://developers.facebook.com/docs/facebook-login/android

    here. Now It will work.

    It worked for me, hope will work for you too.

    OR

    This command may not give you latest keyhash.

    keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64

    To get latest or active keyhash from android studio search 'hash' in your android studio's Logcat or android monitor while app is running and throwing above error. You will get different keyhash which is active. After pasting this searched keyhash in your console setting you may log be able to your app.

    0 讨论(0)
  • 2020-11-29 19:25

    I had the same problem today on my sites and then realised that I was using the old default_graph_version = v3.2. I've changed it to the latest:

    default_graph_version = v4.0

    Now everything works again. Give it a try.

    0 讨论(0)
提交回复
热议问题