import EventEmitter from 'events';

class MessengerWrapper extends EventEmitter {
  constructor(opts) {
    super();

    opts = opts || {};

    if (!opts.verifyToken || !opts.pageAccessToken) {
      throw new Error('VERIFY_TOKEN or PAGE_ACCESS_TOKEN are missing.');
    }

    this.verifyToken = opts.verifyToken;
    this.pageAccessToken = opts.pageAccessToken;
  }
}

export default MessengerWrapper;

@@ -362,16 +362,229 @@
 ken;%0A  %7D
+%0A%0A  verify(req, res) %7B%0A    if (req.query%5B'hub.verify_token'%5D === this.verifyToken) %7B%0A      return res.send(req.query%5B'hub.challenge'%5D);%0A    %7D else %7B%0A      return res.send('VERIFY_TOKEN does not match.');%0A    %7D%0A  %7D
 %0A%7D%0A%0Aexpo

add verify method