# Key hash for Facebook not working?

**URL:** <https://forum.ionicframework.com/t/key-hash-for-facebook-not-working/44357>\
**Category:** ionic-v1\
**Created:** [February 21, 2016, 9:51pm UTC](https://forum.ionicframework.com/t/key-hash-for-facebook-not-working/44357 "2016-02-21T21:51:15Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nitishrajput01](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nitishrajput01/32/123978_2.png) [@nitishrajput01](https://forum.ionicframework.com/u/nitishrajput01)\
**Post date:** [February 22, 2016, 1:04pm UTC](https://forum.ionicframework.com/t/key-hash-for-facebook-not-working/44357/5 "2016-02-22T13:04:18Z")

</div>

@Crash  
This is how i solved this problem  
Downloaded your APK to your PC in java jdk\bin folder

C:\Program Files\Java\jdk1.7.0\_79\bin

go to java jdk\bin folder and run cmd then  
copy the following command in your cmd

keytool -list -printcert -jarfile _apkname_.apk

Copy the SHA1 value to your clip board  
like this CD:A1:EA:A3:5C:5C:68:FB:FA:0A:6B:E5:5A:72:64:DD:26:8D:44:84  
and open [http://tomeko.net/online\_tools/hex\_to\_base64.php](http://tomeko.net/online_tools/hex_to_base64.php) to convert your SHA1 value to base64. This is what Facebook requires  
get  
`zaHqo1xcaPv6CmvlWnJk3SaNRIQ=` as our keyhash.

---

_[View the full topic](https://forum.ionicframework.com/t/key-hash-for-facebook-not-working/44357)._
