Sunday, January 4, 2015

How to Get Android Hash Key for Facebook Apps?


When you are integrating Facebook with Android application, it is mandatory to create Facebook app for your android application.
For security reasons we have provide our development machine key hash while creating Facebook app in order to get response from facebook API.





Key Hash is required to Integrate Facebook SDK with your Android application. There are two types of Key Hashes that are required to access Facebook API responses. They are namely Debug Key Hash and Release Hey Hash.
Here I am least bothered about creating Facebook App, rather I would like to discuss more about creating Debug Key Hash and Release Key Hashes for your Android application.
Debug Key Hash : This is required when you are testing your application on your android emulator. Your Android development environment by default creates a Debug key for you atdebug.keystore located at “C:\Users\user.android\debug.keystore“. You can simply make use of this key are generate your Debug Key Hash and submit it to facebook.
Steps to create Debug Key Hash for Facebook :

  1. Download and install OpenSSL from http://slproweb.com/products/Win32OpenSSL.html based on windows 32 or 64 bit.(Note: Download and install first visual C++ 208 redisributable from that site also )
  2. Java path: From Java Environment or (C:\Program Files\Java\jdk1.6.0_35\jre\bin)
    Open SSL Path: C:\OpenSSL-Win32\bin 
    Keystore Path: C:\Data\ANDROID\KEYSTORE\
  3. keytool -exportcert -alias [alias name] -keystore [Keystore Path]\debug.keystore | [Open SSL Path]\openssl sha1 -binary | [Open SSL Path]\bin\openssl base64
  4. Now Open the command prompt     and  put this command on cmd

    keytool -exportcert -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore | C:\OpenSSL-Win32\bin\openssl sha1 -binary | C:\OpenSSL-Win32\bin\openssl base64
    When Enter key press ,show this windows

  5. Now enter password "facebook" without double quote.
  6. Now a hash key will be generated   




  7. Finally go to the Facebook Developer site. Make sure you are logged into Facebook and, using the dropdown menu in the top-right, go to your 'Developer Settings':
  8. Once you're in your developer settings, select 'Sample App' from the navigation on the left, and add and save your key hash put into your apps fied 

57 comments :

  1. Thanks for your informative article. Android SDK allows you to create stunning mobile application loaded with more features and enhanced priority. With basis on Java coding language, you can create stunning mobile application with ease. Android Training Institutes in Chennai

    ReplyDelete
  2. Oracle DBA Training in Chennai
    Thanks for sharing this informative blog. I did Oracle DBA Certification in Greens Technology at Adyar. This is really useful for me to make a bright career..

    ReplyDelete
  3. Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing..
    Websphere Training in Chennai

    ReplyDelete
  4. Data warehousing Training in Chennai
    I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly..

    ReplyDelete
  5. Selenium Training in Chennai
    Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    ReplyDelete
  6. Oracle Training in chennai
    Thanks for sharing such a great information..Its really nice and informative..

    ReplyDelete
  7. SAP Training in Chennai
    This post is really nice and informative. The explanation given is really comprehensive and informative..

    ReplyDelete
  8. This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
    Android Training In Chennai In Chennai

    ReplyDelete
  9. Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my vision, keep sharing..
    Unix Training In Chennai

    ReplyDelete
  10. I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    SalesForce Training in Chennai

    ReplyDelete
  11. There are lots of information about latest technology and how to get trained in them, like Best Hadoop Training In Chennai in Chennai have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies Hadoop Training in Chennai By the way you are running a great blog. Thanks for sharing this blogs..

    ReplyDelete
  12. This is really an awesome article. Thank you for sharing this.It is worth reading for everyone. Visit us:
    Oracle Training in Chennai

    ReplyDelete
  13. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    Oracle DBA Training in Chennai

    ReplyDelete
  14. great article!!!!!This is very importent information for us.I like all content and information.I have read it.You know more about this please visit again.
    Oracle RAC Training in Chennai

    ReplyDelete
  15. Wonderful tips, very helpful well explained. Your post is definitely incredible. I will refer this to my friend.
    SalesForce Training in Chennai

    ReplyDelete
  16. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
    Java Training in Chennai

    ReplyDelete
  17. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.
    PHP Training in Chennai

    ReplyDelete
  18. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.Nice article i was really impressed by seeing this article, it was very interesting and it is very useful for me..
    Android Training in Chennai

    ReplyDelete
  19. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.
    SAP Training in Chennai

    ReplyDelete
  20. Excellent information with unique content and it is very useful to know about the information based on blogs.
    Hadoop Training in Chennai

    ReplyDelete
  21. After reading these comment i've came to an conclusion that this is some deep ass horse shit

    ReplyDelete
  22. After reading these comment i've came to an conclusion that this is some deep ass horse shit

    ReplyDelete
  23. Latest Govt JObs 2016


    The information provided was extremely useful and informative. Thanks a lot for useful stuff..................

    ReplyDelete

  24. Thanks for sharing as it is an excellent post would love to read your future post.

    App Development Tutorial

    ReplyDelete
  25. Really awesome blog. Your blog is really useful for me.
    Thanks for sharing this informative blog. Keep update your blog.
    Oracle Training In Chennai

    ReplyDelete
  26. Best SAS Training Institute In Chennai It’s too informative blog and I am getting conglomerations of info’s about Oracle interview questions and answer .Thanks for sharing, I would like to see your updates regularly so keep blogging.

    ReplyDelete
  27. Android SDK allows you to create stunning mobile application loaded with more features and enhanced priority. With basis on Java coding language, you can create stunning mobile application with ease.

    Cado Magenge
    mobile apps development companies melbourne
    web design and development company
    app development company
    iphone application development melbourne

    ReplyDelete
  28. Nice information you shared the great tutorial about android.
    Android Training in Chennai

    ReplyDelete
  29. I always learn something new when I get to read any of your posts. Thanks a lot for explaining to us how to get android hash key.You may want to click on this link: Finish My Analysis Chapter

    ReplyDelete
  30. Greens Technology's. the leading software Training & placement centre Chennai & (Adyar)
    informix training in chennai

    ReplyDelete
  31. • Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision..
    sas training in chennai

    ReplyDelete
  32. hi welcome to this blog.really you have post an informative blog.it will be really helpful to many peoples.
    apachespark training

    ReplyDelete
  33. Firstly, to generate your key hash on your local computer, run Java's keytool utility (which should be on your console's path) against the Android debug keystore. This is, by default, in your home .android directory).

    on ubuntu, it's woking in my computer

    hide apps on android

    ReplyDelete
  34. I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
    Mobile App Development Company
    Mobile App Development Company in India
    Mobile App Development Companies

    ReplyDelete

 

Copyright @ 2014 Tech Tutorial .