0

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:

enter image description here

Note the key that was generated.

enter image description here

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.

Community
  • 1
  • 1
Jorg Ancrath
  • 1,447
  • 10
  • 34
  • 61

1 Answers1

0

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!

Kaspars Ozols
  • 6,967
  • 1
  • 20
  • 33