I'm developing a hybrid app with Meteor and Cordova. I'm trying to configure Facebook Connect and got it working on iOS but I'm stuck on android. I cannot seem to find the correct key hash. I always get the message:
Invalid key hash. The key hash ... does not match any stored key hashes.
I already tried to find the correct key hash via the following command:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
and the standard password "android". I added the resulting key to Facebook but it didn't help. I also tried the tool in the following post. It gave me another key which also did not work. Any ideas?
Steps : Go to facebook developer's page : https://developers.facebook.com/ Open the App tabs and than click the Setting. Paste the generate hashkey on HashKey's field = If you don't have it yet, get your key hash part of code.
You will have to enter a password. The password is: android. A code will come up and that code is your key hash.
Meteor uses its own debug keystore when creating an android app via meteor run android-device. The keystore can be found at ~/.meteor/android_bundle/.android/debug.keystore.
Use the following code and the keystore password android for creating your keyhash:
keytool -exportcert -alias androiddebugkey -keystore \
~/.meteor/android_bundle/.android/debug.keystore | openssl sha1 -binary | openssl base64
I went through the same problem and simply had to put the key which was on the error message on FB settings. It worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With