Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating Facebook SDK's Key Hash for Android app in Amazon AppStore

I'm publishing an Android app at Amazon AppStore and doubted about integration with Facebook.

The instructions on Facebook's site are very clear in case if I'm using just my certificate to sign app. However, as I understand Amazon signs the app with its own certificate and, therefore, I should generate a new Key Hash for Facebook SDK.

So my question is: how do I generate Key Hash for Amazon Appstore signed app (if I don't have their keystore)?

like image 227
Dmitry Avatar asked Aug 16 '11 15:08

Dmitry


2 Answers

We got in touch with Amazon through their Developer Portal (Help -> Contact Us -> Questions about application signature) regarding this issue.

Looks like they enabled a flag for our app that gives us an option to sign the binary ourselves. When uploading a binary, you get an option: Amazon will sign the binary or I will sign the binary.

If you want to sign the binary, the process looks like this:

Step 1: You upload an unsigned APK

Step 2: You download the processed binary that contains their injected code

Step 3: You sign the processed binary with your key and upload again

This way, you can reuse your existing Key Hash for Facebook SDK.

like image 73
Sarp Centel Avatar answered Oct 17 '22 16:10

Sarp Centel


Amazon provides you the hash. Under the "Binary File" tab, there is a section titled "Appstore Certificate Hashes". You just need to copy the sha1 base 64 hash to the Facebook app settings.

like image 4
Tom Kincaid Avatar answered Oct 17 '22 15:10

Tom Kincaid