[Solved] How to solve this facebook key hash error?


public void generateHashkey(){
        try {
            PackageInfo info = getPackageManager().getPackageInfo(PACKAGE, PackageManager.GET_SIGNATURES);
            for (Signature signature : info.signatures) {
                MessageDigest md = MessageDigest.getInstance("SHA");
                md.update(signature.toByteArray());
                String s = Base64.encodeToString(md.digest(),
                        Base64.NO_WRAP);

                Log.e("HASH KEY ", s);
            }
        } catch (PackageManager.NameNotFoundException e) {
            Log.d("Name not found", e.getMessage(), e);

        } catch (NoSuchAlgorithmException e) {
            Log.d("Error", e.getMessage(), e);
        }
    }

try to generate the hashkey then copy paste it to developer console facebook.

5

solved How to solve this facebook key hash error?