Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Facebook邀请直接访问断开的链接,而不是google play_Android_Facebook_Facebook Graph Api - Fatal编程技术网

Android Facebook邀请直接访问断开的链接,而不是google play

Android Facebook邀请直接访问断开的链接,而不是google play,android,facebook,facebook-graph-api,Android,Facebook,Facebook Graph Api,我正在使用安卓系统中最新的Facebook SDK向我的应用程序发送邀请,但当朋友们收到邀请并点击它时,他们会被定向到Facebook应用程序断开的页面(未找到页面),而不是google play进行下载。有人知道为什么吗 这是我的密码: Bundle bundle = new Bundle(); bundle.putString("message", message); bundle.putString("app_id", applicationId); i

我正在使用安卓系统中最新的Facebook SDK向我的应用程序发送邀请,但当朋友们收到邀请并点击它时,他们会被定向到Facebook应用程序断开的页面(未找到页面),而不是google play进行下载。有人知道为什么吗

这是我的密码:

    Bundle bundle = new Bundle();

    bundle.putString("message", message);
    bundle.putString("app_id", applicationId);

    if (friendId != null) {
        bundle.putString("to", friendId);
    }

    bundle.putString("title", title);

    WebDialog applicationInvitationDialog = new WebDialog.RequestsDialogBuilder(
            activity,
            ParseFacebookUtils.getSession(),
            bundle
    )
            .setOnCompleteListener(
                    new WebDialog.OnCompleteListener() {
                        /**
                         *
                         * @param bundle
                         * @param facebookException
                         */
                        @Override
                        public void onComplete(Bundle bundle, FacebookException facebookException) {

                            boolean wasSent = false;

                            if (facebookException != null) {

                                Configuration.singleton().getCrashReportHandler().logException(
                                        facebookException
                                );

                            } else {
                                wasSent = true;
                            }

                            callback.callback(
                                    wasSent, getInvitees(bundle)
                            );

                        }
                    }
            ).build();

    applicationInvitationDialog.show();

发现了问题。我根本不需要发送应用程序id。
希望它能帮助别人。

你是在使用你的google play应用程序id而不是引用你的google play应用程序的facebook应用程序id吗?哦。。。你是说我应该发送Google应用程序id而不是Facebook应用程序id。。。不,正好相反,但看起来你已经明白了。