简体   繁体   English

我的设备上安装了Facebook应用后,我的应用无法正常工作

[英]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.

相关问题 我的Android应用程序无法在设备上运行 - My android app doesn't work on device 如果未安装应用程序,Facebook登录将不起作用 - Facebook login doesn't work if app is not installed 使我的应用程序成为设备所有者不起作用 - Making my app a device owner doesn't work 当我尝试在Facebook(FQL)中使用它时,我的应用程序中的访问令牌不起作用 - Access Token from my app doesn't work when I try to use it in a Facebook (FQL) 我的Android应用程序无法安装在我的设备中 - My android app can't be installed in my device 我的应用未安装在真实设备中 - My app is not installed in real device iOS 的 Flutter 应用程序:从计算机安装时,“评价我的应用程序”在设备上有效,但从 TestFlight 安装时无效 - Flutter app for iOS: 'Rate My App' works on device when installed from computer but does not work when installed from TestFlight 在我的应用程序中,我正在使用Facebook SDK登录以及它在AVD上的工作,但在实际设备上却无法使用? - In My app i'm using login with Facebook SDK and its work on AVD but didn't work on real device? 当我在手机上运行应用程序时,后台不起作用 - Background doesn't work when I run the app on my phone 从设置中清除数据后,我的应用程序无法运行 - My app doesn't work when the data cleared from settings
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM