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?
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.