Setup : npm install npm start app.js To run the sample function type the following url in your browser http://localhost:8080/facebook/gotopage