Java – Key hash not generated

Key hash not generated… here is a solution to the problem.

Key hash not generated

I’m trying to get the key hash from my Android app. Facebook SDK 3.0 gives the following code:

keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64

When I run it, it first shows binary:no error; Then it will ask me for the password I entered on Android. After hitting enter, it returns blank where I expect the password.

I used the mentioned solution here ; This does give me a key hash, but when I use it, nothing opens session.

My java keytool is stored in:

C:\Program Files\Java\jre7\bin

OpenSSL is stored in

F:\openssl\bin

When I run it in MD in Windows, I give the correct file path.

Please help me solve this problem!

Related Problems and Solutions