I'm using botframework with Node.js SDK version 4, and i'm try to send an HeroCard to Facebook Messanger.
If i send the card without all it works properly, but if i add some buttons i get a generic error in console that doesn't give me any information.
The error is the following : "[onTurnError]: Error: Facebook API error bot framework"
Doesn't work:
await turnContext.sendActivity({attachments: [CardFactory.heroCard("Lorem Ipsum 1","https://mysite/myimg.jpg", ["buy","view"]);, CardFactory.heroCard("Lorem Ipsum 2","https://mysite/myimg.jpg", ["action1","action2"]);], attachmentLayout: "carousel", text:"asd"});
Work without errors:
await turnContext.sendActivity({attachments: [CardFactory.heroCard("Lorem Ipsum 1","https://mysite/myimg.jpg", []);, CardFactory.heroCard("Lorem Ipsum 2","https://mysite/myimg.jpg", []);], attachmentLayout: "carousel", text:"asd"});
Thanks, Lorenzo