是否可以自定义类似于BranchOut的apprequest通知消息? [英] Is it possible to customize the apprequest notification message similar to BranchOut?
本文介绍了是否可以自定义类似于BranchOut的apprequest通知消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我注意到,BranchOut请求有一个自定义的通知消息,并与我的通知中的其他应用程序请求分开。
I've noticed that BranchOut requests have a custom notification message and stand apart from other app requests in my notifications.
这是因为BranchOut与Facebook?
Is this because BranchOut has a special partnership with Facebook?
该文档规定通知中不会显示消息值,所以我很好奇这是如何做的。
The documentation states that the "message" value will not be displayed in the notification, so I'm curious how this is being done.
推荐答案
绝对可以使用参数 new_style_message 设置为 true - 您可以双重检查这通过逆向工程化他们的Javascript API库。
it's definitely possible, using the parameter new_style_message set to true - you can double check this by reverse engineering their Javascript API library.
这是一个示例代码
FB.ui({
display: 'iframe',
method: 'apprequests',
new_style_message: true,
title: "Join my network",
message: "would like you to join his network",
to: [list of user ids to invite]
});
这篇关于是否可以自定义类似于BranchOut的apprequest通知消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文