Quite new to using any sort of Web App stuff, and I\'ve been trying to slowly build a Facebook Messenger Bot. When I try to use ngrok I can\'t visit the address I\'m given,
If you just with to use ngrok to intercept incoming data, and you do not have a local webserver for whatever reason, then you can use ncat.
nc -l 5000
This will create a process that listens on port 80.
So when used in combination with
ngrok http 5000
You will no longer get the '502 bad gateway' error.