The Facebook Messenger API is pretty sweet overall. However, whenever an user sends a sticker (The balloon thumb up sticker for example) to my bot, it always freezes for around 20 seconds. If the user sends a lot of stickers, the bot will simply crash and Facebook will send me "Webhook failing" developer alert.
I suspect there is something wrong with my code but I couldn't find any error. Something interesting I found is that when the bot crashed and Facebook sends me the "Webhook failing" alert, the bot will be revived and back to responding to messages if I resubscribe my app to the page by entering the following in the command line.
curl -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<PAGE_ACCESS_TOKEN>"
Here is some information that may be helpful to you.
Repo: https://github.com/lorix-lpan/r-score-god
Server.js: https://github.com/lorix-lpan/r-score-god/blob/master/src/server.js
Facebook Page: https://www.facebook.com/rscoregod/
Note: The bot is still not available to the public at the moment, message it so I can add you as a test user.
Thank you very much!