Problem with generating key - Android
I'm trying to get the key hesh from my app for integration with Facebook. I've followed the Signing your Application guide on the Android Developers(http://developer.android.com/guide/publishing/app-signing.html#setup), and the Android Facebook guide(http://developers.facebook.com/docs/guides/mobile/#android).
My problem is that I don't know how to properly get the key hesh from the keystore. Here's what I do in the cmd -
keytool -exportcert -alias androiddebugkey -keystore C:\U开发者_如何学Gosers\Mickael.android\debug.keystore
Then it asks for a password, and then shows me a very long gibberish key. Now I know that key is encrypted. The facebook guide offers 2 commands -
| openssl sha1 -binary
| openssl base64
But I don't know how to get them to work.
Here is a picture of the problem - http://img543.imageshack.us/i/keyfail.jpg/
I could really use some help
Thanks in advanced!
The output you are showing isn't going through the base64 encoder. Make sure you do the entire line below in a single line. The post makes it look like new lines, but they all need to be run as a single command.
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
See:
Key hash for Facebook Android SDK
精彩评论