Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS 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 184.108.40.206 release ready!
Owner and Founder. Opencart
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*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.