Search code examples
facebookfacebook-messenger-bot

facebook messenger api context


I am playing with facebook messenger API

I wonder if there is a way to maintain context of the conversation. Maybe some kind of sequence order, or payload after messages.

Thank you.


Solution

  • Messages include a mid you can use:

    https://developers.facebook.com/docs/graph-api/reference/v2.11/message