Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Release apk Facebook hash key not same with generated one

I am developing an Android app. In my app, I am integrating Facebook Login. My facebook login working fine. But not working when I produce release apk and run that app and try to log in with Facebook. Please see my scenario below.

  1. I generate release apk like below

enter image description here

enter image description here

  1. Then I generate keyhash using that jks file path.

  2. I got a hash key and then add it to the developer profile settings.

When I install and run that apk on my device and login using Facebook, it always shows error like below.

enter image description here

Facebook hash key misconfiguration. Actually all the steps I did was right. So what I tried is, I tried copy that hash key to developer settings and not working. I tried another way. I generated new release apk with new key(Different jks file). Then I generated hash key for it and add it to developer settings. Then I run app on my phone and log in. It gives me same error. Besides, it shows the same error with same hash key even if I generated another release apk with different key. What is wrong?

This is additional

All the release apk can login to Facebook at first time. Then log in again. Above error shows. Unstall the app and install again not working. But if I generate a release apk with different keystore, it works for the first time, then not working. Unstall and reinstall not working as well. What is the possible error?

like image 257
Wai Yan Hein Avatar asked Nov 09 '16 17:11

Wai Yan Hein


1 Answers

I had this problem too... When you generate the hash key, you add your computer password, but you have to write android You will get the key hash that facebook is showing you.

So, add it on your app on developers.facebook.com

See it here how to do it: android facebook integration invalid key hash

like image 195
Jaco Avatar answered Oct 08 '22 09:10

Jaco