N8N Tools - Instagram Enhanced icon

N8N Tools - Instagram Enhanced

Complete Instagram Graph API integration with media management, insights, stories, reels, shopping, and advanced features

Overview

This node integrates with the Instagram Graph API to manage Instagram media content. Specifically, the "Delete Media" operation under the "Media" resource allows users to delete a specific Instagram media item by its media ID. This is useful for automating content management workflows where outdated or unwanted posts need to be removed programmatically.

Practical examples include:

  • Automatically deleting promotional posts after a campaign ends.
  • Removing media that no longer complies with updated brand guidelines.
  • Cleaning up test or placeholder posts created during content scheduling.

Properties

Name Meaning
Media ID The unique identifier of the Instagram media item to delete.

Output

The output JSON contains the response from the Instagram API regarding the deletion request. Typically, this will confirm whether the media was successfully deleted or provide error details if the deletion failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an active subscription and valid API key for the external service referred to as "N8N Tools API" which acts as a proxy or enhancer for Instagram Graph API calls.
  • Requires OAuth2 credentials for Instagram API access.
  • The node uses internal helper classes to interact with Instagram's media endpoints.

Troubleshooting

  • Invalid subscription or API key: If the node throws an error about invalid subscription or API key, verify that the API key credential is correct and has an active subscription.
  • Media not found or already deleted: Deletion may fail if the provided Media ID does not exist or has been previously deleted. Double-check the Media ID.
  • Permission errors: Ensure the Instagram account linked via OAuth2 has permission to delete the specified media.
  • API rate limits: Frequent deletions might hit Instagram API rate limits; handle such errors by retrying after some delay.

Links and References

Discussion