Facebook friend invitation request doesn't display the message

一个人想着一个人 提交于 2019-12-12 05:05:31

问题


I have a String message = "hi"; and when the user gets the invitation he doesn't see my message, but something like you have a request from ...

params.putString("message", message);
params.putString("to", "123123123");
WebDialog webdialog = new WebDialog.Builder(PurchaseFlowActivity.this,
        Session.getActiveSession(), action, params)
        .setOnCompleteListener(new WebDialog.OnCompleteListener() {
            @Override
            public void onComplete(Bundle values,
                    FacebookException error) {

            }
        }).build();
Window dialog_window = progressDialog.getWindow();
dialog_window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);
webdialog.show();

回答1:


The message is not shown in the notification popup for invites.

It is only shown if the target user has installed the app already.



来源:https://stackoverflow.com/questions/19097609/facebook-friend-invitation-request-doesnt-display-the-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!