Delete

You can use the Delete activity to delete objects in the social graph, for example, delete a comment, or an unlike for an object.

General

The following table describes the configurations on the General tab of the Delete activity.

Field Module Property? Visual diff? Description
Name No Yes The name of the activity displayed in the process. The default value is Delete.
Object No Yes Select the type of object you want to delete from the Object list. Four objects are available: Post, Comment, Link, and Other. If you select Other, specify other objects by specifying the Object ID on the Input tab. These objects must be published by the Publish activity earlier. Delete can be performed only on objects created by the plugin.

When this manual was written, information about permissions you might have to delete an object was available at http://developers.facebook.com/docs/authentication/permissions.

The Delete activity deletes only those objects that have an ID. Objects that do not have an ID, the whole object, for example, is deleted if the permissions are set.

Unlike this object No Yes Select this check box to unlike an object.
Note: The check box is displayed when you select Post, Comment, Link, or Other from the Object list.

Description

On the Description tab, you can add a short description for the Delete activity.

Input

The following table describes the input elements on the Input tab of the Delete activity.

Input Item Data Type Description
graphObjectID String The ID of the object to be deleted.
Note: If you intend to delete a post ID, but specify the User ID by accident, the user with that ID is deleted. If the graphObjectID is not of the right Object type, and the user access token has permission to delete the object to which the graphObjectID belongs, the plug-in deletes the object without returning any error.
token String The Facebook authentication token (OAuth token) to access the data.

Output

The following table describes the output element on the Output tab of the Delete activity.

Output Item Data Type Description
deleteResult Boolean It is True if successful.

If the Delete operation is not successful, an error occurs.

Fault

The following table describes the error schema elements on the Fault tab of the Delete activity.

Output Item Data Type Description
FBPluginException
msg String This error message is displayed when the Facebook plug-in captures an exception.
msgCode String This error code is displayed when the Facebook plug-in captures an exception.
FBConnectionException
msg String This error message is displayed when the HTTP connection to Facebook is not available, or another connection problem that is unrelated to authorization exists.
msgCode String

This error code is displayed when the HTTP connection to Facebook is not available, or another connection problem that is unrelated to authorization exists.

FBOauthException
msg String This error message is displayed when your token is invalid, expires, or you have no permission to retrieve or publish the information you want to retrieve or publish.
msgCode String This error code is displayed when your token is invalid, expires, or you have no permission to retrieve or publish the information you want to retrieve or publish.