Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed Binder Transaction Facebook API Login Failure

I am trying to run the "Scrumptious" sample android application included in the Facebook SDK. However, when I hit the login button and enter my credentials, I get this error message in the log saying

!!! FAILED BINDER TRANSACTION !!!

Has anyone had issues with this? Would appreciate any guidance.

Thanks in advance.

like image 835
user1202422 Avatar asked Feb 15 '23 08:02

user1202422


1 Answers

I was having the same issue and it turned out I had the wrong key hash registered with my app. I used the snippet of code posted in Facebook sdk 3.0 android to determine my key hash and the problem went away.

try {
PackageInfo info = getPackageManager().getPackageInfo("com.facebook.scrumptious", PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
    MessageDigest md = MessageDigest.getInstance("SHA");
    md.update(signature.toByteArray());
    Log.e("MY KEY HASH:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
}
} catch (NameNotFoundException e) {

} catch (NoSuchAlgorithmException e) {

}
like image 122
Iñaqui Avatar answered Mar 27 '23 15:03

Iñaqui