Thursday, May 2, 2013

Android: Generate Key Hash for Facebook





















Follow the below mentioned steps and get your facebook keystore details :

  • Download Openssl from: openssl-for-windows
  • Make a openssl folder in C drive
  • Extract Zip files into openssl folder
  • Copy the File debug.keystore from .android folder in my case (C:\Users\shraddhas\.android) and paste into JDK bin Folder in my case (C:\Program Files (x86)\Java\jdk1.6.0_17\bin)
  • Open command prompt and give the path of JDK Bin folder in my case (C:\Program Files (x86)\Java\jdk1.6.0_17\bin).
  • Copy the code and hit enter : keytool -exportcert -alias androiddebugkey -keystore debug.keystore > c:\Openssl\bin\debug.txt
  • Now you need to enter password, Password = android.
  • See in Openssl Bin folder you will get a file with the name of debug.txt
  • Now either you can restart command prompt or work with existing command prompt
  • comes to C drive and give the path of openssl Bin folder
  • copy the following code and paste openssl sha1 -binary debug.txt > debug_sha.txt
  • you will get debug_sha.txt in openssl bin folder

Written by: Shraddha Sheth

0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites