Facebook Comments
Access Facebook Page comments with the Graph API: list, reply (with tagging and images), and view replies
Actions9
Overview
This node allows interaction with Facebook Page comments via the Facebook Graph API. Specifically, the 'Reply to Comment' operation enables users to post replies to specific comments on Facebook Page posts. It supports adding text messages, attaching images either via a public URL or by uploading binary image data, and tagging users in the reply message. This node is useful for automating customer engagement on Facebook Pages, such as responding to user comments with personalized messages or images.
Use Case Examples
- Automatically reply to user comments on a Facebook Page post with a thank-you message and an image attachment.
- Use binary image data from previous workflow steps to upload an unpublished photo and reply to a comment with that photo attached.
- Tag specific users in a reply message using JSON-formatted message tags for targeted responses.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method to provide credentials for Facebook API access, either Access Token or OAuth2. |
| Request Timeout (ms) | Timeout duration for each HTTP request in milliseconds. |
| Max Retries | Number of retry attempts on HTTP 429, 5xx errors, or timeouts. |
| Page ID Source | Source of the Facebook Page ID, required when uploading binary images for attachment. |
| Page | Select one of your managed Facebook Pages (shown when Page ID Source is 'Select From My Pages'). |
| Page ID | Numeric Facebook Page ID (shown when Page ID Source is 'Manual Entry'). |
| Comment ID | ID of the comment to which the reply will be posted. |
| Message | Text content of the reply message. |
| Additional Fields | Optional fields to enhance the reply, including attachment URL, binary image upload, message tags in JSON, and max binary size limit. |
Output
JSON
id- ID of the created reply comment.message- Text content of the reply.attachment_url- URL of the attached image if provided.attachment_id- ID of the uploaded photo attachment if binary upload was used.created_time- Timestamp when the reply was created.
Dependencies
- Facebook Graph API
Troubleshooting
- Ensure the Page ID is provided when using OAuth2 authentication, especially for binary image uploads.
- Message length must not exceed 8000 characters; otherwise, an error is thrown.
- Attachment URL must be a valid HTTPS URL if provided.
- Binary uploads require the binary property to exist on the input item and must be an image MIME type.
- Network or connection issues may cause request failures; check firewall, DNS, SSL certificates, and proxy settings.
- If using Access Token authentication, ensure the token is a valid Page token, not a user token.
Links
- Facebook Graph API - Comment Replies - Official documentation for managing comment replies via the Facebook Graph API.
- Facebook Page Access Tokens - Guide on obtaining and using Facebook Page access tokens for API access.