Android Facebook SDK: generate release key hash

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

    For future reference, if you already have your app on Play Store you can this:

    1. Go to Release Management

    2. select App Signing in Release Management

    3. You can see SHA1 key in hex format App signing certificate.

    4. Copy the SHA1 in hex format and convert it in to base64 format, you can use this link http://tomeko.net/online_tools/hex_to_base64.php to do that without the SHA1: part of the hex.

    5. Go to Facebook developer console and add the key(after convert to base 64) in the settings —> basic –> key hashes.

提交回复
热议问题