Facebook Android SDK Invalid_key [英] Facebook Android SDK Invalid_key

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

问题描述


可能重复:

登录失败与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 could be for a number of reasons -


  1. 确保您已安装Keytool和OpenSSL。

  2. 确保您正在给

  3. 确保您提供了正确的别名。

  4. 确保您将生成的哈希值正确地复制到Facebook应用程序正确。

  1. Make sure you have Keytool and OpenSSL installed.
  2. Make sure you are giving the correct Keystore file in the command.
  3. Make sure you are giving the correct Alias.
  4. Make sure you copied the generated Hash Key correctly to the Facebook application correctly.

当我最初收到无效密钥时,是因为我提供了错误的别名。奇怪的是,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 Invalid_key的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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