Note that there are some explanatory texts on larger screens.

plurals
  1. POkeytool with Android Facebook SDK
    text
    copied!<p>I just want some confirmation.</p> <p>I'm developing on windows</p> <p>I'm attempting to integrate facebook into an app and the SDK documentation says I need to 'export a signature'</p> <p>From here: <a href="http://developers.facebook.com/docs/guides/mobile/#android" rel="noreferrer">http://developers.facebook.com/docs/guides/mobile/#android</a></p> <p>So it says run this command:</p> <pre><code> keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 </code></pre> <p>First I had to download openssl: <a href="http://code.google.com/p/openssl-for-windows/downloads/detail?name=openssl-0.9.8k_WIN32.zip&amp;can=2&amp;q=" rel="noreferrer">OpenSSL</a></p> <p>Now the command above, I assume should be converted to:</p> <pre><code>"C:\path\to\java\keytool" -exportcert -alias your_alias -keystore "C:\path\to\your\keystore\keystore.name" | "C:\path\to\openssl_install\bin\openssl" sha1 -binary |"C:\path\to\openssl_install\bin\openssl" base64 </code></pre> <ul> <li>So you want the keytool that is installed in your latest Java install folder?</li> <li>You want the alias to be the name of the alias you use for a normal apk creation in eclipse?</li> <li>You want the keystore to be the one you use when exporting android apps?</li> <li>You want openssl to be the one you just installed</li> </ul> <p>So once I've done this it asks for a password: (it shows the password as I'm typing it)</p> <p>If I enter a correct password I get </p> <blockquote> <p>'zR2tey1h9kqPRSW/yEYEr0ruswyD=' (changed for public)</p> </blockquote> <p>but if I enter an incorrect password it still returns me a code in the form of </p> <blockquote> <p>'ga0RGNYHvTR5d3SVDEfpQQAPGJ1='?</p> </blockquote> <p>So yeah, was just looking for a confirmation that I'm doing the right thing, and this is the output expected</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload