Actions72
- Pages Actions
- Posts Actions
- Groups Actions
- Events Actions
- Insights Actions
- Marketing/Ads Actions
- Videos Actions
- Messaging Actions
- Shop/Catalog Actions
- Lead Ads Actions
- Webhooks Actions
Posts → Get Likes
AI-generatedOverview
This node provides enhanced integration with the Facebook Graph API, enabling users to interact with various Facebook resources such as Pages, Posts, Groups, Events, Insights, Users, Marketing/Ads, Videos, Messaging, Shops/Catalogs, Lead Ads, and Webhooks. Specifically, for the Posts resource and the Get Likes operation, the node retrieves the list of users who have liked a specified Facebook post.
This functionality is useful in scenarios where you want to analyze engagement on a Facebook post, gather data about audience interaction, or trigger further workflow actions based on who liked a post. For example, marketers can use this to identify active followers, or community managers can monitor post popularity.
Properties
| Name | Meaning |
|---|---|
| Post ID | The Facebook Post ID to retrieve likes for |
Output
The output contains a JSON array where each item corresponds to the response from the Facebook API for the requested post's likes. The structure typically includes details about users who liked the post, such as their Facebook user IDs and names (depending on API permissions and response format).
No binary data output is produced by this operation.
Example output snippet (conceptual):
[
{
"id": "user_id_1",
"name": "User One"
},
{
"id": "user_id_2",
"name": "User Two"
}
]
Dependencies
- Requires an API key credential for the "N8N Tools API" service to validate subscription and access.
- Requires valid Facebook API credentials (OAuth2 or API key) configured in n8n to authenticate requests to Facebook.
- The node uses an internal helper class to communicate with the Facebook Graph API endpoints.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.
- Facebook API permission errors: Ensure that the Facebook credentials used have the necessary permissions to read post likes.
- Post ID issues: Make sure the provided Post ID is valid and accessible by the authenticated Facebook account.
- Rate limits: Facebook API rate limits may cause temporary failures; consider adding retry logic or handling rate limit errors gracefully.
- Continue on Fail: The node supports continuing execution on failure for individual items, allowing partial success in batch operations.