Mik*_*gan 16 facebook dialog apprequests
如果我调用这个:
FB.ui({
method: 'apprequests',
title: 'Who would you like to invite?',
message: 'Hello there'
});
Run Code Online (Sandbox Code Playgroud)
要求我选择接收者的请求对话框中的"预览"表明收件人将收到消息"Hello there".
但他们得到的只是:
'name' send you a request in 'app'
这并不能激励他们点击它.
还有其他人遇到这个问题吗?有解决方案吗
小智 9
如果在FB.ui方法中传递"new_style_message"参数,则可以更改通知中的消息.这将改变通知的格式:
$name sent you a request in $app
至
$name $message in $app
使用此参数传递自定义消息字段时,您将被限制为一定数量的字符,该title参数将被忽略(对于通知,它仍将显示在游戏/应用页面上),并且您无法更改"in $ app"后缀所以你的消息需要是一个短句片段:
FB.ui({
method: 'apprequests',
message: 'sent you an awesome request'
new_style_message: true
});
Run Code Online (Sandbox Code Playgroud)
请注意,这是一个未记录的功能; 官方支持可能不可靠,将来可能会在没有任何警告的情况下发生变化.
| 归档时间: |
|
| 查看次数: |
7995 次 |
| 最近记录: |