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
  • 7,521
  • 5
  • 39
  • 64
P.Henderson
  • 891
  • 2
  • 12
  • 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
  • 22,198
  • 39
  • 124
  • 293