Android Facebook SDK: generate release key hash

后端 未结 11 1990
执念已碎
执念已碎 2020-12-04 14:49

I\'m building an app in which users can log in with Facebook.

I\'ve created the hash keys like following:

try {
         PackageInfo info = getPackag         


        
11条回答
  •  囚心锁ツ
    2020-12-04 15:01

    1. First open the command prompt (Windows + R)

    2. cd C:\Program Files\Java\jre1.8.0_172\bin

    3. Download openssl from HERE

    4. Create a folder named OpenSSL in C:/ drive

    5. Export the downloaded zip file in OpenSSL folder

    6. Generate the command as:-

      keytool -exportcert -alias YOUR_ALIAS -keystore "YOUR_KEYSTORE_PATH" | "C:\OpenSSL\bin\openssl" sha1 -binary | "C:\OpenSSL\bin\openssl" base64

    7. Paste the command in command prompt and press enter

    8. Enter password

    9. Here you can see the key :- "1skdhyjsgd56whdjddV+vCLE="

提交回复
热议问题