Monday, 16 March 2015

"invalid key hash" error login with facebook

I created an Android app with Facebook  Log in. I have no problem to run it and log in it, but after log out it when i  log in again it gives me invalid hash key error.

Solution for Invalid Key Hash in android for Facebook:-

click here for generating new hash keyopyYour

1)Copy your SHA-1 key from eclipse ->window->preference->android -> builds->and paste it after open it above link.

2) Separete your SHA-1 key like this "12AB34" or "12 Ab 34" or "12,AB,34" etc input is case-insensetive

3) Then paste it into Hex string and click on convert.

4) Then copy your output (base 64) and () paste it into you Facebook sdk from where you have created hash key &replace it with  output (base 64) key and save it.

Now you will not facing that invalid hash key problem.