There are several steps involved to get the Hash Key.There are quite a few pre-requisites & then you need to get the has key.
The PRE-REQUISITES for facebook sdk:
1)You must have the JDK.(Get it from here)
2)Android SDK(ADT BUNDLE)
The ADT BUNDLE INCLUDES:
(This means you do not have to download them(Eclipse,ADT,SDK) separately)
- Eclipse + ADT plugin
- Android SDK Tools
- Android Platform-tools
- The latest Android platform
- The latest Android system image for the emulator
4)After downloading it, register to create apps.(For this, i recommend you to watch this tutorial)
STEPS TO GET HASH KEY FOR ANDROID PLATFORM
2)Unzip & extract the files.
3)Copy all files of the bin folder found in the extracted files & paste it in the JDK’s bin
For me , it is: C:\Program Files(x86)\Java\jre7\bin
4)Find keystore path
You can search the keystore path by:-
(i)Search debug.keystore in your finder/windows explorer search box
(ii)You can find the Keystore path using Eclipse. Goto Window->Preference->Android->Build will open up a window as shown below.
You can find the Default debug keystore. Copy the path.
Put the keystore patth in the following command.
keytool -exportcert -alias androiddebugkey -keystore [Key_store_path] | openssl sha1 -binary | openssl enc -a -e
5)Now go to command prompt( in windows )or terminal ( in mac) & type
C:\Program Files\Java\jre7\bin>keytool -exportcert -alias androiddebugkey -keystore C:\Users\sarouje\.android\debug.keystore | openssl sha1 -binary | openssl enc -a -e
6)Fire a command prompt and paste the command and run it. Tool will generate a key for you.
I took a long time to get a hash key ,so i blogged hoping to help.
Feel free to comment & let me know your thoughts & ideas