how to generate android hash key?

i’ve long been wanting to ask, what’s the difference between android hashkey and the facebook appId you generated who’s got a secret question ???

so i went and check to the guides they say use:

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

and replace “debug” with the name of our app?? tell me if im following correctly. im using WINDOWS XP and when i run that code in the java bin directory from the console it said “open ssl” is not a valid command? gaaawd, this is hurting my nooby head. 

I answered this for you earlier in our private chat, but for the benefit of anyone who reads this later:

The Facebook AppID is a unique number generated by Facebook when you create the Facebook App.  It is used in your build.settings and when you call facebook.login() from your Corona SDK app.

The Hashkey is derived from the keystore you use to build your app.  It is a string generated  from the keytool command above.  Generally you will have a debug.keystore that can be used to sideload Android apps onto testing devices.  When you are ready to deploy you build against a different keystore which you have to create and tell Corona SDK about.  Some people call this a “release keystore”.  

While it’s okay to use the debug keystore and generate a keyhash, you will have to use a release keystore before you put it into any Android store and you have to update the Facebook App settings with the keyhash of the release keystore.

I answered this for you earlier in our private chat, but for the benefit of anyone who reads this later:

The Facebook AppID is a unique number generated by Facebook when you create the Facebook App.  It is used in your build.settings and when you call facebook.login() from your Corona SDK app.

The Hashkey is derived from the keystore you use to build your app.  It is a string generated  from the keytool command above.  Generally you will have a debug.keystore that can be used to sideload Android apps onto testing devices.  When you are ready to deploy you build against a different keystore which you have to create and tell Corona SDK about.  Some people call this a “release keystore”.  

While it’s okay to use the debug keystore and generate a keyhash, you will have to use a release keystore before you put it into any Android store and you have to update the Facebook App settings with the keyhash of the release keystore.