简体   繁体   English

使用facebook-android-sdk

[英]using facebook-android-sdk

I am trying to integrate the official Facebook sdk with my android app. 我正在尝试将官方的Facebook sdk与我的Android应用程序集成。 I am following this link - https://developers.facebook.com/docs/guides/mobile/ 我正在关注此链接-https://developers.facebook.com/docs/guides/mobile/

Everything is fine until I come to the step - exporting the signature for your app Here they ask us to run this command : 一切正常,直到我执行此步骤-为您的应用程序导出签名在这里,他们要求我们运行以下命令:

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore 
| openssl sha1 -binary
| openssl base64

When I run this I get a huge pattern containing all sorts of characters & symbols I am confused that which one is my requires String . 运行此命令时,我得到一个巨大的模式,其中包含各种字符和符号,我感到困惑,那就是我需要String

Please help 请帮忙

I blogged about it once, here . 我曾经在这里写过一篇博客。 It also has a sample project. 它还有一个示例项目。

I think it should solve your issues. 我认为它应该解决您的问题。
if you're still unsure, revert. 如果仍然不确定,请还原。

From the keytool documentation : keytool文档中

If no file is given, the certificate is output to stdout. 如果未提供文件,则证书将输出到stdout。

Same thing for openssl : the output goes to standard output. openssl也是一样 :输出进入标准输出。

If you want to save the output in a file, just redirect the output. 如果要将输出保存在文件中,只需重定向输出即可。 On most operating systems, this si done with > 在大多数操作系统上,这是通过>

keytool ... | openssl base64 > key.cert

它是您必须使用的完整字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM