我只是想要一些确认.
我在 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'
从这里:http://developers.facebook.com/docs/guides/手机/#android
所以它说运行这个命令:
So it says run this command:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
首先我必须下载 openssl:OpenSSL
First I had to download openssl: OpenSSL
现在上面的命令,我假设应该转换为:
Now the command above, I assume should be converted to:
"C:path ojavakeytool" -exportcert -alias your_alias -keystore "C:path oyourkeystorekeystore.name" | "C:path oopenssl_installinopenssl" sha1 -binary |"C:path oopenssl_installinopenssl" base64
因此,一旦我完成此操作,它就会要求输入密码:(它会在我输入密码时显示密码)
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)
但是如果我输入了错误的密码,它仍然会以
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
是的,我认为你的做法是正确的.我也执行此命令并将此哈希放入我的 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.
这篇关于带有 Android Facebook SDK 的 keytool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!