👩💻Using Source Code
Deploy to Glitch#
- Click 'Remix' button bellow
- Set Variables in
.envfiles - Put your glitch app url in your facebook app developer, e.g.
https://hayword.glitch.me/webhook
Testing in localhost & Deploy with Ngrok#
- Download
final-code.ziphere - Unzip
final-code.zipand open final-code folder - Create .env file that contain :to getting the value from .env variables, you can read the tutorial.
- run
npm installoryarn addin terminal - run
npm startin terminal - Download and Install Ngrok here.
- run ngrok
ngrok http 1337in terminal, after that you will get ngrok url e.ghttps://5f54c02d532f.ngrok.io - Put ngrok url+/webhook that you get to webhook url in facebook app developer e.g
https://5f54c02d532f.ngrok.io/webhook