Android Facebook SDK: generate release key hash

后端 未结 11 1960
执念已碎
执念已碎 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:09

    I find a solution. for MAC

    Use this one to get YOUR_RELEASE_KEY_ALIAS:

    keytool -list -keystore /Users/***/Documents/keystore/***.jks
    

    and this one to get your release keyhash:

    keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore /Users/***/Documents/keystore/***.jks | openssl sha1 -binary | openssl base64
    

    It works for me.

提交回复
热议问题