Android应用程序密钥散列犯规匹配任何存储的密钥散列 [英] Android app Key Hash doesnt match any stored key hashes
问题描述
我有使用与Facebook的SDK登录生产在Play商店中的应用程序。 当我调试Eclipse中的应用程序是没有问题的,但是当它在生产它给了我下面的错误的Facebook要求我的权限后。 我已经加入我的应用程序页面上developers.facebook.com的密钥散列使用keytool生成使用这个命令:
I have an application on production on Play Store which uses a login with the Facebook SDK. When I debug the application from Eclipse there is no problem, but when its on production it gives me the following error after Facebook asks me for the permissions. I have added on my app page on developers.facebook.com the key hash generated with keytool using this command:
密钥工具-exportcert -alias迭戈-keystore C:\用户\圣地亚哥\桌面\ CeluChat.KeyStore| C:\ OpenSSL的\ BIN \ openssl.exeSHA1 -binary | C:\ OpenSSL的\ BIN \ openssl.exe的base64
keytool -exportcert -alias diego -keystore "C:\Users\Diego\Desktop\CeluChat.KeyStore" | "C:\openssl\bin\openssl.exe" sha1 -binary | "C:\openssl\bin\openssl.exe" base64
CeluChat.KeyStore是我以前当我导出签名的应用程序的密钥库,当密钥工具promts我要密码,我进入了出口的时候是一样的。
CeluChat.KeyStore is the keystore I used when I exported the signed application, and when keytool promts me for the password, I entered the same when exported.
但是,这给了我生产(从Play商店下载)的错误是:
But the error that gives me on production (downloaded from Play Store) is:
10-20 22:21:10.752:W / fb4a(:):BlueServiceQueue(5872): com.facebook.http.protocol.ApiException:密钥散列 VQ3XhZb5_tBH9oGe2WW32DDdNS0不符合任何存储的密钥哈希值。
10-20 22:21:10.752: W/fb4a(:):BlueServiceQueue(5872): com.facebook.http.protocol.ApiException: Key hash VQ3XhZb5_tBH9oGe2WW32DDdNS0 does not match any stored key hashes.
关键哈希是对的例外是从具有密钥工具生成的密钥散列不同。无论如何,我加入Facebook上的密钥散列,但它仍然没有工作。 任何想法? 谢谢
The Key Hash that is on the exception is different from the key hash generated with keytool. Anyway I added the Key Hash on Facebook, but it is still not working. Any idea? Thanks
推荐答案
Facebook的一些如何替换+, - 和/或与_
Facebook some how replaces +,- and / with _
所以才尝试更换_与+, - 。和/并添加哈希键
So just try replacing _ with +, - and / and add that hash-key.
希望它应该工作。
这篇关于Android应用程序密钥散列犯规匹配任何存储的密钥散列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!