Android的Facebook的SDK:如何生成非调试哈希键? [英] Android Facebook SDK: How to generate a non-debug hash key?

查看:168
本文介绍了Android的Facebook的SDK:如何生成非调试哈希键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我知道如何生成调试哈希键与Android的密码。我知道,每一个新的设备,我需要生成(并上传到Facebook)的新的哈希键。

So, I know how to generate the debug hash key with the password of android. I know that for each new device, I need to generate (and upload to facebook) the new hash key.

现在,我还没有准备好实际上是在生产中,但我想给应用程序分发到一组测试人员将preFER不产生散列东西自己。我看到对非调试哈希键:

Now, I am not yet ready to actually be in production, but I'd like to distribute the app to a set of testers that would prefer not to generate hash things on their own. I see references to a non debug hash key:

接下来,您将需要生成应用程序密钥散列。对于   调试,如果使用Eclipse,你将要生成密钥散列   使用Android调试的关键。当您准备好发布应用程序,   你需要生成一个密钥散列为您的签名密钥和更新   在Facebook的这个值的签署应用程序之前将工作。

Next, you will need to generate a Key Hash for the application. For debugging, if using Eclipse, you will want to generate this Key Hash using the Android debug key. When you are ready to publish your app, you will need to generate a Key Hash for your signing keys and update this value in Facebook before your signed app will work.

<一个href="http://www.techrepublic.com/blog/app-builder/integrate-facebook-logins-in-your-android-app/296">http://www.techrepublic.com/blog/app-builder/integrate-facebook-logins-in-your-android-app/296

你如何产生的?我从来没有做生产(签字)应用程序之前,这事做呢?是否有一个缺点签下我的应用程序及其以前做?如果不是的话,我该怎么办,让任何设备运行与Facebook连接这个程序?

How do you generate this? I've never made a production (signed) app before, is this something to do with that? Is there a downside to signing my app before its done? If it's not, what do I do to let any device run this app with facebook connectivity?

推荐答案

您可以轻松地生成一个自己的键登录发布模式应用程序。看到Android文档的详细信息:签约在释放模式

You can easily generate an own key to sign your application in release mode. See the Android documentation for detailed information: Signing in Release Mode.

密钥库代例如:

$ keytool -genkey -v -keystore my-release-key.keystore
  -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

然后,当你做了调试键生成散列Facebook的:

Then generate the hash for Facebook as you did with the debug key:

$ keytool -exportcert -alias alias_name -keystore my-release-key.keystore
  | openssl sha1 -binary | openssl base64

和最后用你的测试者分享您签署的apk,仅此而已。

And finally share your signed apk with your group of testers, that's all.

这篇关于Android的Facebook的SDK:如何生成非调试哈希键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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