facebook key hash生成

We now need to do is a export the signature for your app so that Facebook can use to ensure users are only communicating with your app on the Android. This is done by running the keytool. The following shows how to export the key for your app using the debug defaults specified by the Android SDK and Eclipse:

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore

| openssl sha1 -binary

| openssl base64

This tool generates a string that must be registered in the Mobile & Devices section of the Developer App for your app


以上是从facebook官网上拷贝下来的

要生成key,有四个要素。

1.确保你的电脑安装了keytool 和openssl。

2.确保你是用下面这个命令,一点都不要错。

3.确保你的alias是正确的,因为即使错误,也不会报错。

4.确保你粘贴到facebook的时候,key没有粘贴错。

>keytool -exportcert -alias androiddebugkey -keystore debug.keystore |openssl sha1 -binary | openssl base64

确保将openssl里的bin文件夹路径加入系统路径变量里

然后确定文件夹位置到你的jdk/bin文件夹里

-keystore debug.keystore 其中debug.keystore默认生成在你的用户文件夹里

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值