Actions9
- User Actions
- Media Actions
- Feed Actions
Overview
This node interacts with Instagram's private API to perform various media-related actions. Specifically, the "Unlike Media" operation allows users to remove a previously given like from an Instagram media post by specifying its media ID.
Common scenarios where this node is beneficial include:
- Managing engagement on Instagram posts programmatically.
- Automating social media workflows that require toggling likes on media content.
- Integrating Instagram media interactions into broader automation pipelines.
For example, a user might automate unliking certain posts after a campaign ends or based on specific criteria evaluated in other parts of their workflow.
Properties
| Name | Meaning |
|---|---|
| Media ID | Instagram media ID (string). The unique identifier of the media post to unlike. This property is required for the Unlike Media operation. |
Output
The output JSON contains a simple success confirmation object when the unlike action completes successfully:
{
"success": true
}
This indicates that the media post was successfully unliked. If an error occurs, the node will throw an error or return an error object depending on the error handling settings.
No binary data output is produced by this operation.
Dependencies
- Requires an Instagram API authentication credential (an API key or session token) configured in n8n.
- Uses Instagram's private API client library bundled as
InstagramClientinternally. - The node attempts to reuse saved session data if available; otherwise, it authenticates using provided credentials.
- Proper Instagram account credentials with permission to like/unlike media are necessary.
Troubleshooting
- Authentication failures: Errors during login or session loading may occur if credentials are invalid or expired. Ensure the Instagram API credential is correct and has valid session data or username/password.
- Invalid Media ID: Providing an incorrect or non-existent media ID will cause the unlike operation to fail. Verify the media ID before running the node.
- Rate limits or API restrictions: Instagram may limit the number of like/unlike actions in a time frame. If errors related to rate limiting appear, consider adding delays or reducing request frequency.
- Operation not supported: If the node configuration does not match the expected resource-operation pair, it throws an error indicating unsupported operation.
Links and References
- Instagram Private API Documentation (third-party) — For understanding underlying API methods.
- n8n Documentation — For general guidance on creating and using custom nodes and credentials.