Adaptive Cards in Carousel Layout in Facebook Mess

2020-07-26 15:09发布

问题:

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