title: Botkit With Express
body: <p>The documentation at Botkit (<a href="https://github.com/howdyai/botkit/blob/master/readme-facebook.md" rel="nofollow noreferrer">https://github.com/howdyai/botkit/blob/master/readme-facebook.md</a>) is pretty not meaningful at all:</p>
  
  <pre><code>// if you are already using Express, you can use your own server instance...
  // see "Use BotKit with an Express web server"
  controller.setupWebserver(process.env.port,function(err,webserver) {
    controller.createWebhookEndpoints(controller.webserver, bot, function() {
        console.log('This bot is online!!!');
    });
  });
  </code></pre>
  
  <p>Moreover, without a custom webserver (like express), Botkit doesnt provide a way to set the custom local url (instead, it simply chooses 0.0.0.0, which is impractical). </p>
  
  <p>Is anyone successfully assembling <code>app = require('express')();</code> into the <code>setupWebserver</code> in Botkit (specially for Messenger). If yes, please present the full code.</p>