带有 Android Facebook SDK 的 keytool

2022-10-28Java开发问题
3

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

    The End

相关推荐

如何使用 JAVA 向 COM PORT 发送数据?
How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)...
2024-08-25 Java开发问题
21

如何使报表页面方向更改为“rtl"?
How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)...
2024-08-25 Java开发问题
19

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

有没有办法在 Java 中检测 RTL 语言?
Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)...
2024-08-25 Java开发问题
11

如何在 Java 中从 DB 加载资源包消息?
How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)...
2024-08-25 Java开发问题
13

如何更改 Java 中的默认语言环境设置以使其保持一致?
How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)...
2024-08-25 Java开发问题
13