I am trying to release my application on Google Play. I have a Facebook login in my application. Until yesterday, everything worked fine until I started the application with debug.keystore. But when I use my own release key and sign my application, Facebook is not logged in, and I cannot understand why.
Following this link and did everything that was a meter: like this: key-hash-for-android-facebook-app
I changed the machines, I changed the platforms (windows and mac osx ML) to get a solution, but the same problem. THIS IS NOT INCLUDED. The code below gives me the correct hash key when I use debug.keystore, where when I sign the application even with different keys, I get the same Hashkey (which I came to after many tests that the key I get is wrong)
PackageInfo info;
try {
info = getPackageManager().getPackageInfo("com.you.name", PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md;
md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
String something = new String(Base64.encode(md.digest(), 0));
Log.e("hash key", something);
}
} catch (NameNotFoundException e1) {
Log.e("name not found", e1.toString());
} catch (NoSuchAlgorithmException e) {
Log.e("no such an algorithm", e.toString());
} catch (Exception e) {
Log.e("exception", e.toString());
}
So, are there any additional steps that we need to take when signing the application using the release key. Please, help.
source
share