1

I'm adding a Facebook plugin to my Cordova app. And now trying to register the platform at https://developers.facebook.com/

It requires the following info from me:

  • Package Name
  • Class Name
  • Key Hashes

Could someone tell me how I can find the package and class name, and how to generate the key hashes?

Mind you, I am using the Cordova command line tool and no editors.

Wahyu Kristianto
  • 8,719
  • 6
  • 43
  • 68
P.Henderson
  • 1,001
  • 2
  • 13
  • 23

1 Answers1

4

You can try this one

development mode

keytool -exportcert -alias YourProjectName -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

password: android

production mode

keytool -exportcert -alias YourProjectName -keystore /Dekstop/YourProject/YourProject.keystore | openssl sha1 -binary | openssl base64

password: yourKeyStorePassword

Reference: http://blog.revivalx.com/2014/05/20/integration-cordova-facebook-connect-plugin-for-android/

Nurdin
  • 23,382
  • 43
  • 130
  • 308