I created a facebook messenger chatbot app. The problem is webhook does not stop sending the same text, so its answering a lot of times for the same question. Any ideas?
Asked
Active
Viewed 37 times
0
-
1Hi Alvaro, we will definitely need more information from you to help. Please review [How do I ask a good question](https://stackoverflow.com/help/how-to-ask) and provide us some code near where you suspect the problem is occurring. – Jon Sampson Dec 06 '18 at 17:58
-
My bad ........ – Alvaro Sebastian Jun 12 '19 at 19:41
1 Answers
0
The problem was my server, which took more than 30 seconds to respond to that webhook request. The solution was send first a 200 OK response to facebook and then process the text, get the response and send it to facebook user's chat.

Alvaro Sebastian
- 1
- 1