keytool将与Android的Facebook SDK [英] keytool with Android Facebook SDK
问题描述
我只是需要一些确认。
我正在开发的Windows
I'm developing on windows
我试图给Facebook整合到一个应用程序和SDK文档说我要'导出一个签名
I'm attempting to integrate facebook into an app and the SDK documentation says I need to 'export a signature'
从这里:<一href="http://developers.facebook.com/docs/guides/mobile/#android">http://developers.facebook.com/docs/guides/mobile/#android
所以说,运行此命令:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
首先,我必须下载的OpenSSL:<一href="http://$c$c.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8k_WIN32.zip&can=2&q=">OpenSSL
现在上面的命令,我认为应该转换为:
Now the command above, I assume should be converted to:
"C:\path\to\java\keytool" -exportcert -alias your_alias -keystore "C:\path\to\your\keystore\keystore.name" | "C:\path\to\openssl_install\bin\openssl" sha1 -binary |"C:\path\to\openssl_install\bin\openssl" base64
- 所以,你要被安装在最新的Java密钥工具的安装文件夹?
- 您想要的别名是您在Eclipse中使用一个正常的apk创建别名的名字?
- 您想密钥库是使用导出Android应用程序时?一个
- 您想要的OpenSSL是刚刚安装的一个
- So you want the keytool that is installed in your latest Java install folder?
- You want the alias to be the name of the alias you use for a normal apk creation in eclipse?
- You want the keystore to be the one you use when exporting android apps?
- You want openssl to be the one you just installed
所以,一旦我做到了这一点,它要求输入密码:(它显示为我打字吧密码)
So once I've done this it asks for a password: (it shows the password as I'm typing it)
如果我输入正确的密码,我得到
If I enter a correct password I get
zR2tey1h9kqPRSW / yEYEr0ruswyD ='(改变公众)
'zR2tey1h9kqPRSW/yEYEr0ruswyD=' (changed for public)
但如果我输入的密码不正确仍返回我一个code的形式
but if I enter an incorrect password it still returns me a code in the form of
ga0RGNYHvTR5d3SVDEfpQQAPGJ1 ='?
'ga0RGNYHvTR5d3SVDEfpQQAPGJ1='?
所以是的,只是在寻找,我做正确的事的确认,这是预期的输出
So yeah, was just looking for a confirmation that I'm doing the right thing, and this is the output expected
推荐答案
是你正在做的正确的方式我think.i还执行这个命令并把这个哈希在我的FB的应用程序和它的正常工作。
yes you are doing it in a right way i think.i also execute this command and put this hash in my fb app and its works properly.
这篇关于keytool将与Android的Facebook SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!