android - The Key does not match any allowed key -
i getting invalid android_key parameter. key cdg3*****etg not match allowed key. configure app key hashes @ https://developers.facebook.com/apps/2487**2958.
steps have completed in window system 1. keytool -export -alias myalias -keystore c:\users\mayank.android\mykeystore | c:\openssl-0.9.8k_x64\bin\openssl sha1 -binary | c:\openssl-0.9.8k_x64\bin\openssl enc -a -e
- got hash key wjpx**+dd+77dtph8sm8k=
facebook app configuration
- filled name
- package name
- class name
- hash key wjpx**+dd+77dtph8sm8k=
- got app id 2487***2958
what else need do.
are facing problem when running on emulator or android device? if on android devices, hashkey piece of code below, learnt https://developers.facebook.com/docs/android/getting-started.
the keytool executed in windows machine emulator run on machine.
@override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); // add code print out key hash try { packageinfo info = getpackagemanager().getpackageinfo( "com.facebook.samples.hellofacebook", packagemanager.get_signatures); (signature signature : info.signatures) { messagedigest md = messagedigest.getinstance("sha"); md.update(signature.tobytearray()); log.d("keyhash:", base64.encodetostring(md.digest(), base64.default)); } } catch (namenotfoundexception e) { } catch (nosuchalgorithmexception e) { } ...
you'll find hashkey in logcat, e.g.
12-20 10:47:37.747: d/keyhash:(936): 478uenkqv+fmqt8dy4akvhkyibo=