Facebook chatbot in python using flask
step 1: make a folder and download these files
step 2: type virtualenv myenv in cmd in the bot directory
step 3: type myenv\Scripts\activate to activate virtual env
step 4:(myenv) C:\Users\Abinfinity\Desktop\FB_chat>curl -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=" YOUR ACCESS TOKEN"
step 5: type python chat.py
step 6: open ngrok and type ngrok http 5000
-
curl cmd
-
then python chat.py
-
access token should be latest
-
subscription key in curl should be latest
-
ngrok address
-
check luis
- mysql -u "username" -h "hosturl" -u
- then enter password
- or use connection.py in repo.