0

我使用以下代码邀请 facebook 朋友到我的应用程序,

private void sendRequestDialog() {
        Bundle params = new Bundle();
        params.putString("message", "Receipt of Defeat");
        Session session = Session.getActiveSession();

        if (session == null) {
            // try to restore from cache
            session = Session.openActiveSessionFromCache(HomePage.this);
        }
        WebDialog requestsDialog = (new WebDialog.RequestsDialogBuilder(
                HomePage.this, session, params)).setOnCompleteListener(
                new OnCompleteListener() {

                    @Override
                    public void onComplete(Bundle values,
                            FacebookException error) {
                        if (error != null) {
                            if (error instanceof FacebookOperationCanceledException) {
                                Toast.makeText(
                                        getApplicationContext()
                                                .getApplicationContext(),
                                        "Request cancelled", Toast.LENGTH_SHORT)
                                        .show();
                            } else {
                                Toast.makeText(
                                        getApplicationContext()
                                                .getApplicationContext(),
                                        "Network Error", Toast.LENGTH_SHORT)
                                        .show();
                            }
                        } else {
                            final String requestId = values
                                    .getString("request");
                            if (requestId != null) {
                                Toast.makeText(
                                        getApplicationContext()
                                                .getApplicationContext(),
                                        "Request sent", Toast.LENGTH_SHORT)
                                        .show();
                            } else {
                                Toast.makeText(
                                        getApplicationContext()
                                                .getApplicationContext(),
                                        "Request cancelled", Toast.LENGTH_SHORT)
                                        .show();
                            }
                        }
                    }

                }).build();
        requestsDialog.show();
    }

单击该通知后,它不会移动到 Playstore。我想把它移到 Playstore(我的应用程序)我已经在“安全画布 URL”中给出了链接

4

2 回答 2

0

在此处输入图像描述

 Steps:
    1) https://developers.facebook.com/
    2) Select your app
    3) Select Settings from left side panel (Do changes in Basic Tab)
    4) and apply changes according to image 
于 2014-07-02T06:22:19.393 回答
0

我刚刚在开发人员设置中打开了“深度链接”,它就起作用了。谢谢你的时间

于 2014-07-02T06:28:56.583 回答