Closed malpunek closed 6 years ago
The screenshot above says that the webhook event contains a messaging
field (first column) that is an array (second column) with one element (third column). Therefore, the code treats this field as an array and iterates over it. Because there is only one messagingEvent
, it will only be passed through once.
I hope this clarifies it for you. If not, please elaborate on how you find this misleading.
Official docs clearly say:
However
messenger-bot-samples/account-linking/routes/webhooks.js:65-66
have the following two lines:I find the lines very misleading.