message: Call Messenger profile api link instead of thread setting one
diff: @@ -480,25 +480,25 @@ function Facebookbot(configuration) {
  facebook_botkit.api.messenger_profile.deleteAPI(message);
  },
  postAPI: function(message) {
  - request.post('https://graph.facebook.com/v2.6/me/thread_settings?access_token=' + configuration.access_token,
  + request.post('https://graph.facebook.com/v2.6/me/messenger_profile?access_token=' + configuration.access_token,
  {form: message},
  function(err, res, body) {
  if (err) {
  - facebook_botkit.log('Could not configure thread settings');
  + facebook_botkit.log('Could not configure messenger profile');
  } else {
  var results = null;
  try {
  results = JSON.parse(body);
  } catch (err) {
  - facebook_botkit.log('ERROR in thread_settings API call: Could not parse JSON', err, body);
  + facebook_botkit.log('ERROR in messenger profile API call: Could not parse JSON', err, body);
  }
  if (results) {
  if (results.error) {
  - facebook_botkit.log('ERROR in thread_settings API call: ', results.error.message);
  + facebook_botkit.log('ERROR in messenger profile API call: ', results.error.message);
  } else {
  - facebook_botkit.debug('Successfully configured thread settings', body);
  + facebook_botkit.debug('Successfully configured messenger profile', body);
  }
  }
  @@ -506,13 +506,13 @@ function Facebookbot(configuration) {
  });
  },
  deleteAPI: function(message) {
  - request.delete('https://graph.facebook.com/v2.6/me/thread_settings?access_token=' + configuration.access_token,
  + request.delete('https://graph.facebook.com/v2.6/me/messenger_profile?access_token=' + configuration.access_token,
  {form: message},
  function(err, res, body) {
  if (err) {
  - facebook_botkit.log('Could not configure thread settings');
  + facebook_botkit.log('Could not configure messenger profile');
  } else {
  - facebook_botkit.debug('Successfully configured thread settings', message);
  + facebook_botkit.debug('Successfully configured messenger profile', message);
  }
  });
  }
  