You need a twilio account/phone number.
You need an ngrok account.
- clone this repo
- pip install requirments.txt
- create your twilio and ngrok accounts
- execute: ngrok http 5000
(or use a different port, but you'll have to change it in twilio2fb.py too) - Go to your twilio phone number settings, copy ngrok_https_url/sms into the 'A MESSAGE COMES IN' webhook field
('ngrok_https_url' is the https url that ngrok generated in previous step) - go to creds.py and fill in your facebook and twilio information
- run: python main.py
To send the message 'Hello Jane' to facebook contact 'Jane Doe', text "Jane Doe: Hello Jane" to your twilio phone number