Facebook 刚刚推出了 Chat Extensions 并开源了一个名为 TaskBot 的示例扩展,它可以在两个人之间聊天。 Github repo 是 here , 官方文档是 here .
我试着玩弄它。在移动应用程序中运行良好。但不在网络应用程序中(通过 messenger.com)。当我尝试编辑任务列表时,我被重定向到页面 https://messenger-taskbot.herokuapp.com/lists/ {id} 并且我有以下消息:
所以我想浏览器上不会有 messenger.com 的聊天扩展吗?
最佳答案
聊天扩展使用 WebView ,在“桌面”Facebook Messenger 和 messenger.com 上, WebView 在新选项卡中打开。聊天扩展依赖于在聊天线程本身内打开的 webview 窗口。
从您链接到的文档:
When the user taps the chat extension's icon, it opens a webview-based UI specified by the developer. The user can then create or select content to be shared into the thread. The message shared into the thread can contain images, links, and more.
是的,聊天扩展似乎只适用于移动设备。
关于facebook - Facebook Messenger 网络应用程序上的聊天扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43481368/