Facebook的Andr​​oid SDK中Invalid_key [英] Facebook Android SDK Invalid_key

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

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/4848067/login-failed-invalid-key-error-with-facebook-sdk">Login与Facebook SDK 失败无效键错误

Possible Duplicate:
Login failed invalid key error with Facebook SDK

我使用了这里ibm.com/developerworks/library/x-androidfacebookapi/一个示例应用程序 测试Facebook的Andr​​oid 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 -

  1. 确保您的keytool和OpenSSL安装。
  2. 确保你是给了正确的密钥库文件中的命令。
  3. 确保你是给正确的别名。
  4. 确保你正确复制生成散列键正确的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.

这篇关于Facebook的Andr​​oid SDK中Invalid_key的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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