带有 Android Facebook SDK 的 keytool [英] keytool with Android Facebook SDK

查看:27
本文介绍了带有 Android Facebook SDK 的 keytool的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想要一些确认.

我在 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

  • 所以您想要安装在最新 Java 安装文件夹中的 keytool?
  • 您希望别名是您用于在 eclipse 中正常创建 apk 的别名的名称吗?
  • 您希望密钥库成为您在导出 Android 应用程序时使用的那个?
  • 您希望 openssl 成为您刚刚安装的那个
  • 因此,一旦我完成此操作,它就会要求输入密码:(它会在我输入密码时显示密码)

    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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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