Feed.deactivateTemplateBundleByID

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

Facebook has discontinued support for this method.

Please use stream.publish, FB.Connect.streamPublish, and Facebook.streamPublish instead. For more information, please read the Developer Roadmap.


Deactivates a previously registered template bundle. Once a template bundle has been deactivated, it can no longer be used to publish stories via feed.publishUserAction. Stories published against the template bundle prior to its deactivation are still valid and will show up in Mini-Feed and News Feed. The response is true if and only if the template bundle, identified by template_bundle_id, is an active template bundle owned by the requesting application, and false otherwise.

You can have a maximum of 100 registered, active template bundles. Use this call to deactivate some template bundles if you're nearing the 100 template bundle limit. In addition, you can deactivate template bundles with the Registered Templates Console on the Developer site. Deactivated template bundles do not count against the 100 template bundle limit.

Parameters

RequiredNameTypeDescription
required api_key string The application key associated with the calling application. If you specify the API key in your client, you don't need to pass it with every call.
sig string An MD5 hash of the current request and your secret key, as described in the How Facebook Authenticates Your Application. Facebook computes the signature for you automatically.
v string This must be set to 1.0 to use this version of the API. If you specify the version in your client, you don't need to pass it with every call.
template_bundle_id string The template bundle ID used to identify a previously registered template bundle. The ID is the one returned by a previous call to feed.registerTemplateBundle.
optional format string The desired response format, which can be either XML or JSON. (Default value is XML.)

Example Return XML

<?xml version="1.0" encoding="UTF-8"?> <feed_deactivateTemplateBundleByID_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/> 1 </feed_deactivateTemplateBundleByID_response>

Error Codes

For a complete list of error codes, see Error codes.

See Also