Facebook的Android SDK中Invalid_key
可能重复:
Login与Facebook SDK 失败无效键错误
Possible Duplicate:
Login failed invalid key error with Facebook SDK
我使用了这里ibm.com/developerworks/library/x-androidfacebookapi/一个示例应用程序 测试Facebook的Android SDK中, 我已经给定应用程序ID在这个示例应用程序。 我已经做了所有的设置和prerequisites。 我已签署的应用程序与我的密钥库和生成散列键 我提交的哈希键的Facebook应用程序的设置页面, 我在我的设备上安装Facebook应用程序。 但毕竟这样的应用程序,让Facebook的错误invalid_key。 请帮我在这方面, 谢谢你。
I am using a sample app for here ibm.com/developerworks/library/x-androidfacebookapi/ to test facebook android SDK, I have given my APP ID in this sample app. I have done all setups and prerequisites. I have signed app with my keystore and generated hash key I submitted hash key to facebook app settings page, I installed facebook app on my device. But after all doing the app gives Facebook error invalid_key. Pls help me in this regards, Thank you.
无效的密钥可能是由于多种原因 -
Invalid Key could be for a number of reasons -
- 确保您的keytool和OpenSSL安装。
- 确保你是给了正确的密钥库文件中的命令。
- 确保你是给正确的别名。
- 确保你正确复制生成散列键正确的Facebook应用程序。
当我拿到无效的密钥最初,那是因为我给了错误的别名。但奇怪的是,那的keytool和OpenSSL不会提的是,别名是错误的。如果你给的命令生成散列键,它doen't询问您的密码,你可能就错了。
When I got Invalid Key initially, it was because I was giving the wrong Alias. The strange thing is, that Keytool and OpenSSl won't mention that the alias is wrong. If you give the command to generate the Hash Key, and it doen't ask you for your password, you're probably doing it wrong.