How to generate facebook hash key for distribution apk (for signed apk)?

  • 1
  • Question
  • Updated 4 years ago
"errorMessage Facebook error: Session was closed and was not closed normally"
I am using phonegap and I am getting the above error message when trying to run this code: facebookConnectPlugin.login( ["email"],
function (response) { alert(JSON.stringify(response)) },
function (response) { alert(JSON.stringify(response)) }) in export signed apk.
But apk file (unsigned or /bin/xyz.apk) runs on emulator and device. What causes this error? I've created a new hash using openSSL, update it in facebook developer app settings of android and phonegap build and still the same error. Any pointers in the right direction would be appreciated! Thanks in advance
Photo of Ishan Rustagi

Ishan Rustagi

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Ishan
Hash key instructions should come with the plugin, or there should be a link. Which plugin are you using?
Jesse