[英]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 请帮忙
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.