Hello, to register the application in facebook, you need to set the key hashes to get the key hashes as I understood it, you need to install openssl and write the cmd strings that are given by facebook I followed the following example of installing openssl link

When opening cmd openssl wrote lines that facebook gives and received the following openssl error :'keytool is invalid command'

how to get key hashes ?

    1 answer 1

    In the application, run this method here in the activit, passing the context - it will output into the logs what you need

     /** * prints keyHashes for app. * need it for social logins */ public static void printHashKey(Context ctx) { try { PackageInfo info = ctx.getPackageManager().getPackageInfo(ctx.getPackageName(), PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); String hashKey = new String(Base64.encode(md.digest(), 0)); Log.i(TAG, "printHashKey() Hash Key: " + hashKey); } } catch (Exception e) { Log.e(TAG, "printHashKey()", e); } }