eclipse - Facebook HASH KEY for Android Signed APK -
i facing problem facebook integration in android application last couple of days might duplicate question please me out . have create android application facebook integration every thing ok , working fine when have launch application eclipse ide or unsigned apk when have used signed apk facebook not working showing dialog when click on dialog disable , nothing happen , have searched , found hash key issue form tell debug hash key , signed hash key different not able make signed hashkey please me .
for facebook integration using simple facebook library
i using windows os
please use code, generate hash key debug or distributor(signing) keystore
try { packageinfo info = getpackagemanager().getpackageinfo(getapplication().getpackagename(), packagemanager.get_signatures); for(signature signature : info.signatures) { messagedigest md = messagedigest.getinstance("sha"); md.update(signature.tobytearray()); string myhashcode = base64.encodebytes(md.digest()); log.e("-------------facebook hash key-----------", myhashcode); } } catch(namenotfoundexception e) { e.printstacktrace(); } catch(nosuchalgorithmexception e) { e.printstacktrace(); } catch(exception e) { e.printstacktrace(); } catch(error e) { e.printstacktrace(); }
Comments
Post a Comment