conbus / fbmq

(Deprecated) Facebook Messenger Platform Python Library (Facebook Chatbot Library)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How to test Page.handle_webhook

falnyr opened this issue · comments

Hello,
I took over a repository that is using your package to connect to the facebook messenger. I'm trying to fix an issue with a message not being handled properly (there's no message handler). While I imagine some way of debugging would be possible (I'm dealing with a Flask app deployed to AWS using Zappa), the current setup is not easily debuggable (at least to my knowledge).

So I would like to take the approach of writing a unit test verifying the expected behaviour. The problem is my knowledge of the Python ecosystem is not very strong and by looking at the code it seems the repository is tightly coupled with the facebook graph endpoint.

Is there a way to efficiently test the scenario described above?

Thank you