Closed niponchi closed 6 years ago
I would like to add default_action to Facebook generic template, like the code below.
const generic = new fbTemplate.Generic(); return generic .addBubble('Claudia.js', 'Deploy Node.js microservices to AWS easily') .addUrl('https://claudiajs.com') .addImage('https://claudiajs.com/assets/claudiajs.png') .addDefaultAction('https://github.com/claudiajs/claudia-bot-builder') .addButton('Say hello', 'HELLO') .addButton('Go to Github', 'https://github.com/claudiajs/claudia') .get()
default_action
addDefaultAction
Would you like to try to send PR for this?
It's on NPM, version 4.2.0. Can you just add this to the documentation?
Thanks again.
Thanks
I would like to add default_action to Facebook generic template, like the code below.
default_action
into generic template https://developers.facebook.com/docs/messenger-platform/send-messages/template/genericaddDefaultAction
method to add the action.