Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add 'default_action' to Facebook generic template #119

Closed
niponchi opened this issue Jul 20, 2018 · 3 comments
Closed

Cannot add 'default_action' to Facebook generic template #119

niponchi opened this issue Jul 20, 2018 · 3 comments

Comments

@niponchi
Copy link
Contributor

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 add default_action into generic template
    https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic
  • What actually happens:
    There is no addDefaultAction 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.
@stojanovic
Copy link
Member

Would you like to try to send PR for this?

@stojanovic
Copy link
Member

It's on NPM, version 4.2.0.
Can you just add this to the documentation?

Thanks again.

@stojanovic
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants