Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
In This blog, we will look into how we can get or log Facebook Key Hash through Java.
The native Facebook login integration instructions are very clear.
You can read the official docs for the same.
But when you are working on the application in the debug/ development mode, then you might have seen this error :
Invalid Key Hash. The Key xxxxxxxxxxxxxxxxxxxxxxxxxxxx does not match any of the keys ……………
Seeing this itself is annoying, but when you are not able to add/ save the key you see on your developers.facebook dashboard, that moment is frustrating.
And the most probable reason for this is that you missed some invisible character in the key hash.
Also, many times you don’t even get the right key for the debug version you just started checking on some of your devices.
I am not saying running terminal commands is bad, but using android studio is pretty simple and straightforward.
So, I have got java code for printing my key hash as a string and I just print it in my launcher activity and check if this is a new key hash or some old, if it is a new key hash I just copy and update it to developers.facebook account dashboard.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Excellent work, fast, good quality and understood the brief perfectly! Quick responses developing the project and very good cooperation. I suggest to anyone.
Stathis Plakidas
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.