Cannot add 'default_action' to Facebook generic template
niponchi opened this issue · comments
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()
- Expected behaviour:
Able to adddefault_action
into generic template
https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic - What actually happens:
There is noaddDefaultAction
method to add the action. - Which bot engine (facebook, skype...):
Facebook Messenger - Link to a minimal, executable project that demonstrates the problem:
NA - Steps to install the project:
NA - Steps to reproduce the problem:
try the above snippet.
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