facebook - Facebook Messenger 网络应用程序上的聊天扩展

标签 facebook facebook-messenger messenger facebook-messenger-bot

Facebook 刚刚推出了 Chat Extensions 并开源了一个名为 TaskBot 的示例扩展,它可以在两个人之间聊天。 Github repo 是 here , 官方文档是 here .

我试着玩弄它。在移动应用程序中运行良好。但不在网络应用程序中(通过 messenger.com)。当我尝试编辑任务列表时,我被重定向到页面 https://messenger-taskbot.herokuapp.com/lists/ {id} 并且我有以下消息:

enter image description here

所以我想浏览器上不会有 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/

相关文章:

jquery - 如何从服务器端停止重定向

c# - 如何在 Facebook Channel 中为 Bot Framework 设置不同的语言?

javascript - Node.js MongoDB 插入错误

node.js - Facebook 信使 :How to show a greeting message when start conversation

node.js - Facebook Messenger 机器人永久菜单

facebook messenger - 关闭 webview 并通知 webhook

javascript - Facebook Messenger 插件无法关闭

css - 在 WordPress 上 Conceal 插件以获得更小的屏幕分辨率

facebook - oauth 不显示 user_checkins 权限

Facebook 实时更新仅返回 "changed_fields": ["feed"] and not the actual comment