com.facebook.FacebookAuthorizationException: UnknownError: Key hash does not match any stored key hashes
I am a lot of time try to connect my android app with facebook but get excaption with the hash key. I read question here about this but didn succes to solve my problem I run this code to get hash key try { PackageInfo info = getPackageManager().getPackageInfo( "com.example.fishe", PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); Log.d("com.example.fishe", Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } catch (NameNotFoundException e) { } catch (NoSuchAlgorithmException