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

Please add support to Facebook chatbot #43

Closed
snehav27 opened this issue Feb 3, 2017 · 1 comment
Closed

Please add support to Facebook chatbot #43

snehav27 opened this issue Feb 3, 2017 · 1 comment

Comments

@snehav27
Copy link

snehav27 commented Feb 3, 2017

const successResponse = {statusCode, body, headers, isBase64Encoded}

            context.succeed(successResponse)

I have written chatbot with node.js and express. And I have pushed it Heroku which works fine. But now when I want move to lambda function, it needs this node_module to support express.

Facebook chatbot expects only body with hub.challenge field in int format but in this code it sends all the response which facebook webhook doesnt allow it expects hub.challenge number.
Please help or let me know if there is any other package doing the same since this package wont work.

@brettstack
Copy link
Collaborator

Can you provide example of what Facebook chatbot expects, and what is being sent by Lambda/API Gateway/Express?

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