简体   繁体   中英

Facebook Key Hash on Android

I'm developing for Phonegap, I originally created an Hash Key to test my app using Facebook Features, my app works just fine on my work computer.

I now want to also have a development environment on my laptop, so again, I went to generate an Hash Key... only this time, my app won't run any FB features, I simply get a "Something went Wrong" whenever I call FB.login (FB.init on the other hand loads fine).

I've been trying to generate keys on this laptop, and it seems that I'm getting different results depending on the command line, giving me the idea that I'm not generating the right keys at all, both these machines run with Windows 8 and I had no issues with the first one, command lines I've tried:

在此处输入图片说明

Note the key that was generated.

在此处输入图片说明

Different line, different key!

I am using openssl-0.9.8e X64 (supposedly the most recent version is no good for 64 bit systems - although in desperation I also tried the new version).

I've read something about generating the key via Java code - https://stackoverflow.com/a/9600642/1087947 , but I'm not a Java person (Phonegap guy), I could really use some help with this.

A little late response, but I came across the same issue and I thought I have to write answer here as well:

The problem seems to be with OpenSSL version you are using when you are on x64 bit machine.

According to this , you should be using versions 0.9.8e or 0.9.8d of OpenSSL:

Furthermore, if you are generating this hash on Windows (specifically 64 bit versions), please use version 0.9.8e or 0.9.8d of OpenSSL for Windows and not 0.9.8k. Big ups to fernandomatos for pointing this out!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM