Adaptive Cards in Carousel Layout in Facebook Messenger using Bot Framework

白昼怎懂夜的黑 提交于 2019-12-21 21:24:12

问题


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.

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

I'm building with .NET.


回答1:


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



来源:https://stackoverflow.com/questions/49235051/adaptive-cards-in-carousel-layout-in-facebook-messenger-using-bot-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!