hey i'm trying to integrate facebook api with my application, i've created hash key via key tool and command line and i used the key on the facebook portal for developers and it didn't work i created it by code it gave different key which also didn't work P.S my app is n't released yet, and the key is for the environment
here is the code i used

        try {
        PackageInfo info = getPackageManager().getPackageInfo(
        for (Signature signature : info.signatures) {
            MessageDigest md = MessageDigest.getInstance("SHA");
            Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));

    } catch (NameNotFoundException e) {

    } catch (NoSuchAlgorithmException e) {


Related posts

Recent Viewed