You are here

function fb_feed_deactivate_template in Drupal for Facebook 5.2

2 calls to fb_feed_deactivate_template()
fb_feed_deactivate_confirm_submit in ./fb_feed.module
fb_feed_update in ./fb_feed.module

File

./fb_feed.module, line 95
Helpers for Facebook feeds (http://wiki.developers.facebook.com/index.php/New_Design_Feed_Wall)

Code

function fb_feed_deactivate_template($fb_app_nid, $bundle_id) {
  $fb_app = fb_get_app(array(
    'nid' => $fb_app_nid,
  ));
  $fb = fb_api_init($fb_app, FB_FBU_ANY);
  if (!$fb) {
    drupal_set_message(t('Facebook API failed to connect.  Template could not be deactivated.', 'error'));
    return FALSE;
  }
  else {
    $result = $fb->api_client
      ->feed_deactivateTemplateBundleByID($bundle_id);
    fb_report_errors($fb, 'Error while deactivating template.');
  }
  return $result;
}