I'm trying to create a Facebook integrated Android app, but trying to use Facebook's Android SDK is tiring. Here's the tutorial I'm following.
I'm stuck on the step Using the Keytool. I've searched around a bit and apparently I have to install OpenSSL which I promptly did.
I found keytool under these directories on my Windows machine:
C:\Program Files\Java\jdk1.6.0_25
C:\Program Files\Java\jdk1.7.0
When I run
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 from the tutorial on openssl
I get the following error:
openssl:Error: 'keytool' is an invalid command.
I followed Maulik J's post from the link provided by Venky here and tried this command in the command prompt and it worked:
C:\Program Files\Java\jdk1.7.0\bin>keytool -export -alias androiddebugkey -keystore "C:\Users\MyUser\.android\debug.keystore" | C:\Users\MyUser\Downloads\openssl-0.9.8k_X64\bin\openssl.exe sha1 -binary | C:\Users\MyUser\Downloads\openssl-0.9.8k_X64\bin\openssl.exe enc -a -e
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