Facebook Android SDK 无效密钥 [英] Facebook Android SDK Invalid_key

查看:30
本文介绍了Facebook Android SDK 无效密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
使用 Facebook SDK 登录失败的无效密钥错误

我在这里 ibm.com/developerworks/library/x-androidfacebookapi/使用示例应用程序测试 facebook android SDK,我在这个示例应用程序中给出了我的 APP ID.我已经完成了所有设置和先决条件.我已经用我的密钥库签署了应用程序并生成了哈希密钥我向 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 可能有多种原因 -

Invalid Key could be for a number of reasons -

  1. 确保您已安装 Keytool 和 OpenSSL.
  2. 确保您在命令中提供了正确的密钥库文件.
  3. 确保您提供正确的别名.
  4. 确保将生成的 Hash Key 正确复制到 Facebook 应用程序.

当我最初得到 Invalid Key 时,是因为我提供了错误的别名.奇怪的是,Keytool 和 OpenSSl 不会提到别名是错误的.如果您发出生成哈希密钥的命令,但它没有要求您输入密码,那么您可能做错了.

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.

这篇关于Facebook Android SDK 无效密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆