生成一个密钥散列在Android的Facebook应用程序 [英] Generate a key hash for Facebook apps in Android

查看:3033
本文介绍了生成一个密钥散列在Android的Facebook应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在的https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/我们展示了如何获得关键的哈希,但我不知道我可以做的密钥工具-exportcert -alias androiddebugkey -keystore%HOMEPATH%.android \ debug.keystore | OpenSSL的SHA1 -binary | OpenSSL的BASE64。在网站上,我们谈论Java的keytool实用程序,但我不知道它是什么?请我要创造我的Facebook应用程序为Android,我不知道该怎么所有这些工作。我需要有人来帮助我一步一步来。感谢您的进展。

On https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/ we show how to get the key hash but i don't know what i can to do with" keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%.android\debug.keystore | openssl sha1 -binary | openssl base64". On the website we talk about Java's keytool utility but i don't know what is it? Please I want to create my facebook app for android i don't know how all of this work. I need someone to help me step by step. Thanks you for Advance.

推荐答案

的Keytool就是Java JDK的一部分。 keytool命令你提到将输出一个base64,调试关键的SHA-1加密再presentation。您的应用程序与此调试键每次编译时都要签字。 Facebook的使用这个键来确认您的计算机编译的应用程序。因此,Facebook的管理应用程序界面,你干脆把keytool命令的输出。

Keytool is part of Java JDK. The keytool command you mentioned will output a base64, sha1 encrypted representation of your debug key. Your app is signed with this debug key each time you compile it. Facebook uses this key to verify that your computer compiled the app. So in the Facebook Manage App interface, you would put the output of the keytool command.

如果您遇到运行命令的麻烦,它最有可能做的不正确的路径。尝试:

If you run into trouble running the command, it has most likely to do with incorrect paths. Try:

"C:\Program Files\Java\jdk1.6.0_33\bin\keytool.exe" -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | "C:\Users\A\Downloads\openssl-0.9.8h-1-bin\bin\openssl.exe" sha1 -binary | "C:\Users\A\Downloads\openssl-0.9.8h-1-bin\bin\openssl.exe" base64

如果你改变你的计算机上的报价为openssl.exe和keytool.exe的的路径中的路径。 (您可能需要先下载的OpenSSL)

Where you change the paths in quotes to the paths of openssl.exe and keytool.exe on your computer. (You might have to download openssl first)

这篇关于生成一个密钥散列在Android的Facebook应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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