Facebook messenger chatbot

I want to make a chatbot that instantly reply to your facebook messages and can also solve simple math question, I’ve already use dialogflow, and chatfuel but their chatbot doesn’t really answer simple math problem like “1+1”
Is there a way to send and receive facebook messages through app?
Is there any extensions for facebook messenger?