Facebook Comments
Access Facebook Page comments with the Graph API: list, reply (with tagging and images), and view replies
Actions9
Overview
This node interacts with the Facebook Graph API to manage Facebook Page comments. It supports listing comments on Page posts, listing replies to comments, replying to comments (including with images and tagging), and other comment management actions such as deleting, editing, hiding, unhiding, liking, and unliking comments. It is useful for social media managers or automation workflows that need to monitor and engage with Facebook Page comments programmatically.
Use Case Examples
- Listing all comments on a Facebook Page's posts to analyze user engagement.
- Automatically replying to comments on a Page post with a predefined message and optional image attachment.
- Fetching all replies to a specific comment to monitor conversation threads.
- Hiding inappropriate comments or deleting spam comments automatically.
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 to obtain the Facebook Page ID from: credential default, manual entry, or selecting from managed Pages. |
| Page | Select one of your managed Facebook Pages (shown only if Page ID Source is 'Select From My Pages'). |
| Page ID | Numeric Facebook Page ID (shown only if Page ID Source is 'Manual Entry'). |
| Return All | Whether to return all comments or limit the number of comments returned. |
| Limit | Maximum number of comments to return if 'Return All' is false. |
| Fields | Comma-separated list of Graph API fields to include in the comment data. |
| Include All Replies | Whether to fetch all replies for each comment. |
| Additional Options | Additional filtering options such as 'since' and 'until' dates to filter comments by creation time. |
Output
JSON
id- Unique identifier of the comment.from- Information about the user who made the comment.message- Text content of the comment.created_time- Timestamp when the comment was created.permalink_url- URL link to the comment.attachment- Any media or attachments included in the comment.comment_count- Number of replies to the comment.like_count- Number of likes on the comment.post_id- Identifier of the post to which the comment belongs.replies- Array of replies to the comment, if 'Include All Replies' is enabled.
Dependencies
- Facebook Graph API
Troubleshooting
- Ensure the Page ID is provided and correctly formatted as a numeric string.
- If using OAuth2 authentication, ensure the user has granted the necessary 'pages_manage_*' permissions and the Page access token can be resolved.
- Check network connectivity and firewall settings if requests fail due to connection errors or timeouts.
- Verify that the Access Token or OAuth2 token is valid and has not expired.
- For binary image uploads, ensure the image size does not exceed the specified maximum and the MIME type is an image format.
- If JSON fields like 'Message Tags (JSON)' are used, ensure the JSON is valid and correctly structured.
Links
- Facebook Graph API - Page Comments - Official documentation for the Facebook Graph API endpoint to manage Page comments.
- Facebook Login Permissions - Details on required permissions for accessing Page data and managing comments.