• Register
0 votes
1.6k 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 147 views
147 views
Problem : Whenever I try to go to my Logs page the following error shows: “There was an error loading Log Streams. Please try again by refreshing this page.” The problem is that there is another function which is identical except my code which is creating the log files no problem. Any suggestions to resolve my issue?
asked Dec 25, 2019 alecxe 7.5k points
0 votes
1 answer 176 views
176 views
Problem : While doing the drupal 6 to 7 upgrade I am facing a not so helpful message "The website encountered an unexpected error. Please try again later." everytime I go to the certain pages. example) /admin/config What is a best way to find out what is causing ... it? All I can think of right now is to start disabling the contributed modules until that the page works or looking through a logs.
asked Jan 21, 2020 jwilliam 3.9k points
0 votes
1 answer 221 views
221 views
Problem : I am having the following error whenever I am trying to open Excel Online in Chrome, But Excel Online in Safari is working fine for me. Does anyone know how to fix this issue? Sign in Something went wrong and we can't sign you in ... . Please try again later. The Microsoft account login server has detected too many repeated authentication attempts. Please wait a moment and try again.
asked Nov 26, 2019 alecxe 7.5k points
0 votes
1 answer 1.7K views
1.7K views
Problem : Facing following error sorry, something unexpected happened. try again. (unknown error (empty response) (#1.1357045))
asked Nov 13, 2019 peterlaw 6.9k points
0 votes
1 answer 86 views
86 views
Problem: I am working on Fancybox for the very first time I am trying to display the inline content (it is a div with the image linked to the new page). My div and image are displayed properly in a modal but if a image is clicked to navigate to a new page then in that case I ... website.com/file/id:64/ext:.png" class="img" /></a></div></div> </li> Can someone help me in fixing my fancybox error.
asked Jul 14, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 50 views
50 views
Problem : I manage some of my WordPress,WooCommerce online shops which are running problem free from few years now. In recent times, we have noticed that the transactions via Paypal have not been working for us. I tried to process the order myself using the PayPal and ... saying that "there is not a problem with PayPal" So without even pulling apart the WooCommerce code, How can I fix the issue.
asked Jan 3, 2020 alecxe 7.5k points
0 votes
1 answer 8.5K views
8.5K views
Problem : When going to one of the Facebook page: I face the below message: This page isn't available The link you followed may be broken, or the page may have been removed I seriously want to claim the name of that page for my facebook page, but I don't know what a message means, or if I can even claim the page?
asked Feb 3, 2020 jwilliam 3.9k points
0 votes
2 answers 95 views
95 views
Problem : I am getting bellow facebook error it looks like you were misusing this feature by going too fast. you’ve been blocked from using it.
asked Nov 7, 2019 peterlaw 6.9k points
0 votes
1 answer 61 views
61 views
Problem: I am very desperately trying to install the modules using node.js but it always fails while getting the packages with npm. I was logged in as Administrator and then used powershell/cmd with a "run as administrator". I also had problems with a registry so I ... error: Npm ERR! Please try running this command again as root/Administrator. Can someone help me in fixing my above NPM error.
asked Aug 31, 2020 Raphael Pacheco 4.9k points