Ankit
Ankit

Reputation: 213

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

Upvotes: 1

Views: 377

Answers (3)

Programmer
Programmer

Reputation: 5400

Its the complete string you have to use.

Upvotes: 0

rds
rds

Reputation: 26974

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

Upvotes: 0

Aman Aalam
Aman Aalam

Reputation: 11251

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.

Upvotes: 1

Related Questions