Apps (such as mine) using this module are not able to do functional automation testing using a facebook simulator because the hardcoded URLs always force all interactions towards graph.facebook.com.
PROPOSAL
Without breaking compatibility, can we optionally override this URL using process.env?
Something like this:
PROBLEM
In Botly.js, the URL to graph.facebook.com is hard-coded.
Apps (such as mine) using this module are not able to do functional automation testing using a facebook simulator because the hardcoded URLs always force all interactions towards graph.facebook.com.
PROPOSAL
Without breaking compatibility, can we optionally override this URL using
process.env
? Something like this:This way, apps that want to plug in a simulator for tests can do so without breaking other apps that are already using this module?
I have the change ready and working. I can raise a PR for this.