using facebook-android-sdk
I am trying to integrate the official Facebook sdk
with my android app.
I am following this link - 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
.
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:
If no file is given, the certificate is output to stdout.
Same thing for openssl: the output goes to standard output.
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
Its the complete string you have to use.
精彩评论