Skip to content

Chat with your facebook friends using regular SMS texting

License

Notifications You must be signed in to change notification settings

sam46/facetwilio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceTwilio

Chat with your facebook friends using regular SMS texting.

You need a twilio account/phone number.
You need an ngrok account.

Setting up:

  • 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

Usage:

To send the message 'Hello Jane' to facebook contact 'Jane Doe', text "Jane Doe: Hello Jane" to your twilio phone number