N8N Tools - Facebook Enhanced icon

N8N Tools - Facebook Enhanced

Comprehensive Facebook Graph API integration for N8N workflows

Posts → Get Comments

AI-generated

Overview

This node integrates with the Facebook Graph API to perform various operations related to Facebook posts, including retrieving comments on a specific post. The "Get Comments" operation under the "Posts" resource fetches all comments associated with a given Facebook Post ID.

This functionality is useful for social media managers, marketers, or developers who want to automate monitoring and analysis of user engagement on Facebook posts. For example, you can use this node to gather comments for sentiment analysis, customer feedback collection, or to trigger further workflow actions based on comment content.

Properties

Name Meaning
Post ID The unique identifier of the Facebook post for which to retrieve comments.

Output

The output contains an array of JSON objects representing the comments retrieved from the specified Facebook post. Each item corresponds to one comment and includes details such as the comment text, author information, timestamps, and other metadata provided by the Facebook Graph API.

No binary data output is produced by this operation.

Dependencies

  • Requires valid Facebook API credentials with appropriate permissions to access post comments.
  • Requires an API key credential for the external "N8N Tools API" service used for subscription validation.
  • The node uses the Facebook Graph API v23.0 endpoints internally.
  • Proper configuration of OAuth2 or API key credentials in n8n is necessary for authentication.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that your API key credential for the external service is correct and active.
  • Permission Errors: Facebook API may return permission errors if the access token lacks rights to read post comments. Ensure the connected Facebook app has the required scopes and the token is valid.
  • Post Not Found: If the specified Post ID does not exist or is inaccessible (e.g., due to privacy settings), the node will fail. Double-check the Post ID value.
  • Rate Limits: Facebook enforces rate limits; excessive requests may cause temporary failures. Implement retry logic or reduce request frequency if needed.
  • Continue On Fail: The node supports continuing execution on individual item failure, allowing partial success when processing multiple inputs.

Links and References

Discussion