I am trying to set up a web hook for the new Facebook Messenger bot platform on my PHP webserver and am receiving this error:
The URL couldn\'t be val
That code is node.js code and should be run on the server not in a tag in your HTML.
Here's a simple walk through of setting up the messenger bot with node.js: https://github.com/voronianski/simon-le-bottle
Essentially you need to make sure you have a host that supports node.js applications and run it as such. It will not work inside of HTML.