我工作的一个Android应用程序,在此我想整合Facebook的 发布功能。我下载了Facebook的Android SDK中,我得到 所述readme.md(文本文件)在那里,在它被提到,以产生 关键哈希为Android。我怎么产生的呢?
I'm working on an Android app, in which I want to integrate a Facebook posting feature. I downloaded the Facebook-Android SDK, and I got the readme.md (text file) in there, in which it is mentioned to generate the key hash for Android. How do I generate it?
下面是具体步骤 -
Here are the steps-
下载从OpenSSL的Google code (如果你有一个64位的机器,你必须download的OpenSSL 0.9.8e X64 不是最新版本)
Download openssl from Google code (If you have a 64 bit machine you must download openssl-0.9.8e X64 not the latest version)
解压缩。在C中创建一个文件夹 - OpenSSL的:/这里复制提取code
Extract it. create a folder- OpenSSL in C:/ and copy the extracted code here.
检测debug.keystore文件路径。如果妳没有发现,然后做在C语言的搜索:/,并使用Path在下一步骤的命令
detect debug.keystore file path. If u didn't find, then do a search in C:/ and use the Path in the command in next step.
检测到您的keytool.exe的道路,去那个DIR /命令提示符,然后在1号线运行此命令 -
detect your keytool.exe path and go to that dir/ in command prompt and run this command in 1 line-
$密钥工具-exportcert -alias androiddebugkey -keystoreC:\ Documents和Settings \ Administrator.android \ debug.keystore| C:\ OpenSSL的\ BIN \ OpenSSL的SHA1 - 二进制 |C:\ OpenSSL的\ BIN \ OpenSSL的的base64
$ keytool -exportcert -alias androiddebugkey -keystore "C:\Documents and Settings\Administrator.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 -binary |"C:\OpenSSL\bin\openssl" base64 它会询问密码,把机器人 仅此而已。 U将得到一个关键的哈希
有关详细信息 访问这里
For more info visit here