Jacob
Jacob

Reputation: 13

Adaptive Cards in Carousel Layout FB Messenger Node.js?

Is it possible to have adaptive cards (rendered to an image and maybe a button mapped) sent in Carousel layout??

Or does Carousel layout only work for hero cards? If so is there a way to map an adaptive card to hero card? I am using node.js

Any input would be much appreciated.

Upvotes: 0

Views: 781

Answers (1)

Gary Liu
Gary Liu

Reputation: 13918

Or does Carousel layout only work for hero cards?

No, you can refer to the sample at https://github.com/Microsoft/AdaptiveCards/blob/a91c425a89784130f8e9603762574737d145977c/samples/Integrated/BotFrameworkCarousel.json, simply leverage session.sned(json) and test in web chart or emulator, it will render as a Carousel.

Unfortunately, as mentioned at https://learn.microsoft.com/en-us/adaptive-cards/get-started/bots#channel-status, adaptive cards in FB Messenger are simply rendered as images. And in my test, FB Messenger will to render with a Carousel. This should be the limitation or restriction in Messenger. Because I cannot find any where in the Messenger Doc what shows that it support Carousel template in FB Messenger.

Upvotes: 2

Related Questions