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 → Delete Post
AI-generatedOverview
This node integrates with the Facebook Graph API to perform various operations related to Facebook entities such as Pages, Posts, Groups, Events, and more. Specifically for the Posts resource, it supports operations including retrieving posts, comments, likes, creating comments, liking/unliking posts, sharing posts, and deleting posts.
The Delete Post operation allows users to delete a specific Facebook post by providing its Post ID. This is useful in scenarios where you want to automate content management on Facebook, such as removing outdated or unwanted posts programmatically within an n8n workflow.
Practical example:
You have a workflow that monitors certain conditions (e.g., negative feedback or expiration date) and automatically deletes corresponding Facebook posts to maintain your page's content quality without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Post ID | The unique identifier of the Facebook post to be deleted. |
Output
The node outputs JSON data representing the result of the delete operation for each input item. Typically, this will include confirmation details from the Facebook API indicating whether the deletion was successful.
- The output JSON structure corresponds to the response returned by the Facebook API after attempting to delete the post.
- If the deletion fails, the output may contain error information describing the failure.
- The node does not output binary data for this operation.
Example output JSON snippet (conceptual):
{
"success": true,
"postId": "1234567890"
}
Dependencies
- Requires valid Facebook API credentials with permissions to manage posts (an OAuth2 or API key credential).
- Requires configuration of an external API key credential for the "N8N Tools API" used for subscription validation.
- The node internally uses a helper class to interact with the Facebook Graph API endpoints.
- Network access to Facebook Graph API endpoints is necessary.
Troubleshooting
Invalid Subscription or API Key Error:
If the node throws an error about invalid subscription or API key, verify that the API key credential for the external validation service is correctly configured and active.Permission Denied or Unauthorized Errors:
Ensure that the Facebook API credentials have sufficient permissions to delete posts on the target Facebook account or page.Post Not Found or Already Deleted:
If the specified Post ID does not exist or has already been deleted, the Facebook API will return an error. Confirm the Post ID is correct and still exists.Continue On Fail Behavior:
If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON for failed items.