Publish

You can use the Publish activity to publish data to the Facebook social graph by using HTTP POST requests.

General

To publish data to the Facebook social graph using the HTTP POST requests, you must have an authentication token. Not all objects can be published.

Note: The Post section in the Graph API Facebook Developer Documentation includes details on a post's fields. The Publish activity includes only a subset of these fields.

The following table describes the configurations in the General tab of the publish activity.

Field Module Property? Visual diff? Description
Name No Yes The name of the activity displayed in the process. The default value is Publish.
Connections No Yes The Connections list contains all potential connections you want to publish.

Description

In the Description tab, you can add a short description for the Publish activity.

Input

The following table describes the input elements in the Input tab of the Publish activity.

Input Item Data Type Description
pageID String The name and contents of the first element depend on the selection you make in the General tab. For example, if you select Comments (of an Object), specify the ID of the post which you want to publish a comment to, and the parameters for the comment.
parameters String The precise parameters depend on the selection you make in the General tab. For example, if you select Comments (of an Object), specify the message of the comment.
token String The Facebook authentication token (OAuth token) to access the data.

Output

The following table describes the output element in the Output tab of the Publish activity.

Output Item Data Type Description
publishResult String Typically the ID of the published object.

For Likes (of an Object), the Publish activity returns true; otherwise, an error occurs in the process.

For Publish (photos of an Object) configured with input source_filename, the Publish activity returns true

Fault

The following table describes the error schema elements in the Fault tab of the Publish 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.