• Register
0 votes
2k views

Problem :

I am getting following error
login error: there is an error in logging you into this application. please try again later.
6 5 3
6,930 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

The error your facing because of invalid hash key.

You can create the Hash key using the following command and after that you need to update the same at https://developers.facebook.com/ under Settings-> Basic -> Android HashKeys

e.g.
keytool -exportcert -alias ADD_RELEASE_KEY_ALIASE_HERE -keystore ADD_UR_KEYSTORE_PATH_HERE | openssl sha1 -binary | openssl base64

Now you can find the Release Keys Alias of your keystore using the following command:

keytool -list -keystore ADD_UR_KEYSTORE_PATH_HERE

I have also experienced the issue by using the above HashKey the login works fine if I have installed the release APK directly to the device, But if I upload the APK to Play Store and after that try to install the app from store then it shows the same Login failed error as shown earlier. The solution for this issue is as follows:

  1. Go to Release Management at https://play.google.com/apps/publish/signup/
  2. Please select Release Management
 -> App Signing
  3. Now you can see the SHA1 key in hex format App signing certificate.

  4. Copy the SHA1 in the hex format and convert it in to the base64 format now you can use this http://tomeko.net/online_tools/hex_to_base64.php to do that without the SHA1: part of the hex.

  5. Finally go to Facebook developer console and add the key(after convert to base 64) in the settings —> basic –> key hashes.
And your issue is resolved.
9 7 4
38,600 points
0 votes

Solution:

The error happens since of invalid hash key.

We can make Hash key emplying the below command and update the similar here under Settings-> Basic -> Android HashKeys

keytool -exportcert -alias ADD_RELEASE_KEY_ALIASE_HERE -keystore ADD_UR_KEYSTORE_PATH_HERE | openssl sha1 -binary | openssl base64

You can trace the Relase Key Alias of your keystore employing the below command if required:

keytool -list -keystore ADD_UR_KEYSTORE_PATH_HERE

I have also experience an problem like by employing the above HashKey the login performs fine in case I install the release APK directly to the device, however when I upload the APK to Play Store and install app from store then it displays the same Login failed error. The solve for this  issue is as follows:

  1. Go to Release Management 

  2. Choose Release Management
 -> App Signing

  3. You can view SHA1 key in hex format App signing certificate.


  4. Copy the SHA1 in hex format and change it in to base64 format, you can exercise this link do that without the SHA1: part of the hex.


  5. Go to Facebook developer console and include the key(after convert to base 64) in the settings —> basic –> key hashes.

Only throwing this out there for people still experiencing this problem. The hash I made through the keytool was somehow incorrect. I solved it by doing the following:

In case you meanwhile uploaded your app to the playstore and enabled "app signing by Google Play" there is a solution (at least this performed for me):

  1. login into you play console

  2. click on the app

  3. Currently, on the left side click "release management"

  4. click on "App signing"

  5. Under "App signing certificate" copy the SHA-1 certificate fingerprint

  6. Go to http://tomeko.net/online_tools/hex_to_base64.php

  7. Paste the SHA-1 in the first field

  8. Copy the text in input field under "Output (base64)"

  9. Presently, open developer.facebook.com/apps

  10. Click on your app

  11. On the left side navigate to "Settings" -> "Basic"

  12. Paste the Base64 text here under key hashes

UPDATE

The steps above must still fully perform.

However, in case you do not want to paste your key on that website, here is an alternative to step 6,7,8 below:

here's a oneliner Node.js command to do the same:

node -e 'console.log(Buffer.from(process.argv[1].split(":").map(hex => parseInt(hex, 16))).toString("base64"))' '5E:8F:16:06:2E:A3:CD:2C:4A:0D:54:78:76:BA:A6:F3:8C:AB:F6:25'

 

10 6 4
31,120 points

Related questions

0 votes
1 answer 4 views
4 views
Problem: I'll make a submission for a response to my question. Please, I have searched the internet but have not found any useful material, and I am now having trouble continuing my studies.
asked Apr 1 rakib1 51.5k points
0 votes
1 answer 2 views
2 views
Problem: Please help me to solve it out : there was an error accepting this trade offer. please try again later. (28)
asked 5 days ago rakib1 51.5k points
0 votes
1 answer 2 views
2 views
Solution: How to solve this error an error occurred please try again later google play?
asked Apr 2 Ifra 24.4k points
0 votes
1 answer 3 views
3 views
Problem: Please let me know the solution of error there was an error communicating with the steam servers. please try again later.
asked Apr 4 ashik 11.2k points
0 votes
1 answer 6 views
6 views
Problem: Why I am getting this error? There was an error sending your trade offer. please try again later. (26)
asked Mar 19 ummesalma 24.5k points
0 votes
1 answer 3 views
3 views
Problem: I installed the "Contact Form 7" plugin in WordPress and created a form. When i click on the submit button, the following error appears: There was an error trying to send your message. Please try again later.
asked Mar 19 ummesalma 24.5k points
0 votes
1 answer 1 view
1 view
Problem: Even though I've enabled my app engine app's billing settings. But app still doesn't work. And showing this error. “This application is temporarily over its serving quota. please try again later.” What to do?
asked 1 day ago muktaa 2.7k points
0 votes
1 answer 3 views
3 views
Problem: I'm having problems during my learning as I mentioned in my question above, I try to find on web search but I can't get proper information, can you help me to continue my project?
asked Mar 22 sadi1982 36.3k points
0 votes
1 answer 2 views
2 views
Problem: we've been getting the "An unexpected error has occurred. Please retry your request later." error for our OG Graph object posts.
asked 3 days ago ummesalma 24.5k points