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

  1. got hash key wjpx**+dd+77dtph8sm8k=
  2. facebook app configuration

    1. filled name
    2. package name
    3. class name
    4. hash key wjpx**+dd+77dtph8sm8k=
    5. 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= 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -