Get key hash for Facebook API from APK File not working

I’m trying to get the key hash for the Facebook API from my APK file with the console command (on macOS) from the docs like this: keytool -list -printcert -jarfile my-apk-file.apk | grep SHA1 | awk '{ print $2 }' | xxd -r -p | openssl base64 But I always get an error about the option -jarfile that say’s that this option is invalide! If I remove the option, I don’t get anything back from the command… Does anyone know how to fix this issue?

14 Sep 2017 ... I'm trying to get the key hash for the Facebook API from my APK file with the console command (on macOS) from the docs like this: keytool -list ...

Lee mas