简体   繁体   中英

creating facebook hash key for android

I followed Steps to create Hash Key.

  1. Downloaded openssl

  2. Unzipped and copied all the files in the bin folder including openssl.exe

  3. Pasted all the files copied from Openssl's bin folder to the Jdk bin folder.

  4. Then i used following command on openssl.exe terminal window

    keytool -exportcert -alias androiddebugkey -keystore C:\\Users\\Joelle.android\\debug.keystore | openssl sha1 -binary | openssl enc -a -e

but it is throwing following error

openssl error :'keytool is invalid command'

Please guide me ...

thanx

Keytool is usually found in JRE bin folder in my case it is present in

C:\\Program Files\\Java\\jre6\\bin

So you should write

cd C:\\Program Files\\Java\\jre6\\bin

then

keytool -exportcert -alias androiddebugkey -keystore C:\\Users\\Joelle.android\\debug.keystore | openssl sha1 -binary | openssl enc -a -e

There is nice tool present

try to generate Key Hash with this tool http://www.easyfacebookandroidsdk.com/download/keyhash.zip

尝试使用

keytool -exportcert -alias androiddebugkey -keystore C:\Users\Joelle.android\debug.keystore | openssl sha1 -binary | openssl base64

您不仅要编写keytool,还必须指定其完整路径,即在我的情况下,路径为:

C:\Program Files (x86)\Java\jre6\bin\keytool.exe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM