function fb_feed_deactivate_template in Drupal for Facebook 5.2
2 calls to fb_feed_deactivate_template()
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;
}