对于Android的Facebook应用程序密钥散列 [英] Key hash for Android-Facebook app

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

问题描述

我工作的一个Android应用程序,在此我想整合Facebook的 发布功能。我下载了Facebook的Andr​​oid 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-

  1. 下载从OpenSSL的<一个href="http://$c$c.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8k_WIN32.zip">Google code (如果你有一个64位的机器,你必须<一个href="http://$c$c.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8e_X64.zip&can=2&q=">download的OpenSSL 0.9.8e X64 不是最新版本)

  1. 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

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

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