Closed ninajlu closed 8 years ago
Hi Nina,
We haven't released any examples showing an integration with the Messenger API yet. In the meantime, please refer to their documentation: https://developers.facebook.com/docs/messenger-platform/quickstart
From a high level, you want to call .runActions() for each user message, and forward your bot response within your say action.
.runActions()
say
Hope this helps.
I just updated the README with basic instructions on how to do that. The example code is in examples/messenger.js.
examples/messenger.js
I put up a simple wrapper if anyone is interested fb-messenger
Hi Nina,
We haven't released any examples showing an integration with the Messenger API yet. In the meantime, please refer to their documentation: https://developers.facebook.com/docs/messenger-platform/quickstart
From a high level, you want to call
.runActions()
for each user message, and forward your bot response within yoursay
action.Hope this helps.