Facebook

Usage Instructions

Integrate Facebook Pages into the workflow. Reply to comments on posts, send direct messages to users via Messenger, hide or unhide comments, and fetch post details including media, caption, and engagement metrics. Uses the Facebook Page access token linked to your workspace. Can be used in trigger mode to trigger a workflow when a comment is added on a Facebook Page post.

Actions

Facebook Reply Comment

Reply to a comment on a Facebook Page post.

Input

ParameterTypeRequiredDescription
commentIdstringYesID of the Facebook comment to reply to
messagestringYesReply message text
pageIdstringYesFacebook Page ID that owns the post

Output

ParameterTypeDescription
commentIdstringID of the newly created reply comment

Facebook Send DM

Send a message to a user via Facebook Messenger API.

Input

ParameterTypeRequiredDescription
recipientIdstringYesFacebook user ID of the recipient
messagestringYesMessage text to send
pageIdstringYesFacebook Page ID that owns the post

Output

ParameterTypeDescription
messageIdstringID of the sent message
recipientIdstringFacebook user ID of the recipient

Facebook Hide Comment

Hide or unhide a comment on a Facebook Page post.

Input

ParameterTypeRequiredDescription
commentIdstringYesID of the Facebook comment to hide or unhide
isHiddenbooleanNoWhether to hide (true) or unhide (false) the comment
pageIdstringYesFacebook Page ID that owns the post

Output

ParameterTypeDescription
hiddenbooleanWhether the comment is now hidden

Facebook Get Post

Fetch a single Facebook Page post by ID. Returns media URL, caption, type, timestamps, engagement metrics, and sub-attachments when applicable.

Input

ParameterTypeRequiredDescription
postIdstringYesID of the Facebook post to fetch
pageIdstringYesFacebook Page ID that owns the post

Output

ParameterTypeDescription
mediaUrlstringURL of the post image (full_picture)
captionstringPost message text
mediaProductTypestringAlways null for Facebook posts (Instagram-only field)
mediaTypestringPost type (photo, video, link, status, etc.)
timestampstringISO 8601 timestamp when the post was created
permalinkstringPermanent URL of the post
likeCountnumberNumber of likes/reactions on the post
commentsCountnumberNumber of comments on the post
childrenjsonArray of sub-attachment media items (only present for multi-photo posts)
↳ mediaUrlstringSub-attachment media URL
↳ mediaTypestringSub-attachment type
↳ descriptionstringSub-attachment description