[英]My app doesn't work when facebook app is installed in my device
I create an application that it shared an post on facebook with easyfacebook. 我创建了一个应用程序,它与easyfacebook在facebook上分享了一个帖子。 If I unistalled the official facebook app from my device I can share the post and It works, but when I installed facebook app my application don't share anything...Anyone can help me to understand why the application doesn't work when facebook app is installed in my device?
如果我从设备上取消了官方的Facebook应用程序的发布,则我可以共享该帖子,并且可以正常运行,但是当我安装Facebook应用程序时,我的应用程序不共享任何内容...应用已安装在我的设备中?
i think that key hash problem follow the code paste the hashcode generated in your app settings page. 我认为关键的哈希问题遵循代码粘贴在您的应用设置页面中生成的哈希代码。
// Add code to print out the key hash
try {
PackageInfo info = getPackageManager().getPackageInfo(
"com.example.assessment", PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
Log.d("KeyHash:",
Base64.encodeToString(md.digest(), Base64.DEFAULT));
}
} catch (NameNotFoundException e) {
} catch (NoSuchAlgorithmException e) {
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.