如何建立 Android Facebook 金鑰雜湊?
本示例演示如何建立 Android Facebook 金鑰雜湊
生成開發金鑰雜湊
Mac OS:在終端中執行以下命令 keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
Windows:在命令提示符中執行以下命令 keytool -exportcert -alias androiddebugkey -keystore "C:\Users\USERNAME\.android\debug.keystore" | "PATH_TO_OPENSSL_LIBRARY\bin\openssl" sha1 -binary | "PATH_TO_OPENSSL_LIBRARY\bin\openssl" base64
生成釋出金鑰雜湊
keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
點選 此處 下載專案程式碼。
廣告