使用Bot Framework的Facebook Messenger中的轮播布局中的自适应卡 [英] Adaptive Cards in Carousel Layout in Facebook Messenger using Bot Framework

查看:117
本文介绍了使用Bot Framework的Facebook Messenger中的轮播布局中的自适应卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过Bot Framework在聊天机器人中使用自适应卡,以便在FB Messenger中使用轮播布局.但是显然FB不支持自适应卡,而是将其渲染为图像+按钮.因此,作为一种解决方法,我想知道的是,是否可以将自适应卡Json代码手动呈现为图像,然后将这些图像用于布局.

I was trying to use Adaptive Cards for my chatbot using Bot Framework, to use in FB Messenger, with a carousel layout. But apparently FB doesn't support Adaptive Cards, and renders them into an image + buttons. So what I wanted to know, as a way to go around it, was if it's possible to manually render the adaptive cards Json code into images, and use those images for the layout.

我试图简单地按原样添加卡片并设置布局,但Facebook只是将其列出,而不是在轮播中列出.

I've tried simply adding the cards as they were and setting the layout, but Facebook simply lists them, not in carousel.

我正在使用.NET进行构建.

I'm building with .NET.

推荐答案

如果使用Facebook Messenger本地模板,则具有更大的灵活性,您可以找到有关它们的更多信息这里在页面底部

You have more flexibility if you use the facebook messenger native templates, you can find more info about them here, but you must consider that if you are looking for a way to have more characters in your card's title & subtitle that won't be possible because of facebook's restrictions which you may find here at the bottom of the page

这篇关于使用Bot Framework的Facebook Messenger中的轮播布局中的自适应卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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