message: Add thread owner API
diff: @@ -1195,6 +1195,42 @@ function Facebookbot(configuration) {
  }
  }
  });
  + },
  + get_thread_owner: function(recipient, cb) {
  +
  + var uri = 'https://' + api_host + '/' + api_version + '/me/thread_owner';
  +
  + if (facebook_botkit.config.require_appsecret_proof) {
  + uri += '&appsecret_proof=' + appsecret_proof;
  + }
  +
  + request.get({
  + url: uri,
  + qs: {
  + recipient: recipient,
  + access_token: configuration.access_token
  + },
  + json: true
  + }, function(err, res, body) {
  + if (err) {
  + facebook_botkit.log('Could not get thread owner');
  + if (cb) {
  + cb(err);
  + }
  + } else {
  + if (body.error) {
  + facebook_botkit.log('ERROR while getting thread owner : ', body.error.message);
  + if (cb) {
  + cb(body.error);
  + }
  + } else {
  + facebook_botkit.debug('Successfully getting thread owner', body);
  + if (cb) {
  + cb(null, body);
  + }
  + }
  + }
  + });
  }
  };
  var broadcast_api = {
  