Facebook 请求对话框未向收件人显示消息 [英] Facebook requests dialog not showing message to recepient

查看:32
本文介绍了Facebook 请求对话框未向收件人显示消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我调用这个:

    FB.ui({
        method: 'apprequests',
        title: 'Who would you like to invite?',
        message: 'Hello there'
    });

出现要求我选择收件人的请求对话框中的预览"表明收件人将收到Hello there"消息.

The 'preview' in the requests dialog that comes up asking me to select recepients, suggests that the recipient(s) will will get the message "Hello there".

但他们得到的只是:

'name' 在 'app' 中向您发送请求

这不会促使他们点击它.

which does not motivate them to click on it.

还有其他人遇到这个问题吗?有什么解决办法吗?

Anybody else getting this problem? Any solutions?

推荐答案

如果在FB.ui方法中传递new_style_message"参数,可以更改通知中的消息.这将更改通知的格式:

You can change the message in the notification if you pass the "new_style_message" parameter in the FB.ui method. This will change the format of the notification from:

$name 在 $app 中向您发送了一个请求

$name $app 中的 $message

使用此参数传递自定义消息字段时,您被限制为一定数量的字符,title 参数将被忽略(对于通知,它仍会显示在游戏/应用页面上),并且您不能更改in $app"后缀,因此您的消息需要是一个短句片段:

When passing a custom message field using this parameter you are limited to a certain number of characters, the title parameter is ignored (for the notification, it will still show on the games/apps page), and you cannot change the "in $app" suffix so your message will need to be a short sentence fragment:

FB.ui({
    method: 'apprequests',
    message: 'sent you an awesome request'
    new_style_message: true
});

请注意,这是一个未记录的功能;官方支持可能不可靠,将来可能会在没有警告的情况下发生变化.

Note that this is an undocumented feature; official support might be unreliable and it may change in the future without warning.

这篇关于Facebook 请求对话框未向收件人显示消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆