message: test pass_thread_control
diff: @@ -722,7 +722,7 @@ function Facebookbot(configuration) {
  facebook_botkit.log('ERROR in secondary receivers list: ', results.error.message);
  } else {
  facebook_botkit.debug('Successfully call page message tags', body);
  - cb(results);
  + cb && cb(results);
  }
  }
  }
  @@ -754,7 +754,7 @@ function Facebookbot(configuration) {
  facebook_botkit.log('ERROR in take thread control API call: ', results.error.message);
  } else {
  facebook_botkit.debug('Successfully taken thread control', body);
  - cb(result);
  + cb && cb(result);
  }
  }
  }
  @@ -768,6 +768,7 @@ function Facebookbot(configuration) {
  target_app_id: target,
  metadata: metadata
  };
  + console.log({request_body})
  request.post('https://' + api_host + '/v2.6/me/pass_thread_control?access_token=' + configuration.access_token,
  request_body,
  function(err, res, body) {
  @@ -787,7 +788,7 @@ function Facebookbot(configuration) {
  facebook_botkit.log('ERROR in pass thread control API call: ', results.error.message);
  } else {
  facebook_botkit.debug('Successfully pass thread control', body);
  - cb(result);
  + cb && cb(result);
  }
  }
  }
  