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. This is useful for social media managers or automation workflows that need to manage engagement on posts, such as retracting likes in bulk or correcting accidental likes.
Practical example:
- Automatically unlike certain posts based on criteria in a workflow (e.g., posts older than a certain date).
- Manage user interactions programmatically without manual intervention in the Instagram app.
Properties
| Name | Meaning |
|---|---|
| Media ID | Instagram media ID (string) — The unique identifier of the media post to unlike. Required for this operation. |
Output
The output JSON contains a simple success confirmation object when the unlike action completes successfully:
{
"success": true
}
If an error occurs, the output may contain an error message describing the failure.
No binary data is output by this operation.
Dependencies
- Requires an Instagram API authentication credential (an API key or session token) configured in n8n.
- Uses Instagram private API client library bundled as
InstagramClient. - Requires valid session data or username/password credentials to authenticate with Instagram.
Troubleshooting
- Authentication failures: If the node throws an error about Instagram authentication failing, verify that the provided credentials are correct and have not expired. Re-authenticate if necessary.
- Invalid Media ID: Errors may occur if the specified media ID does not exist or the authenticated user does not have permission to unlike it.
- Rate limits or API restrictions: Instagram may limit the number of like/unlike actions in a short period; encountering errors related to rate limiting requires slowing down requests or handling retries.
- Network issues: Connectivity problems can cause timeouts or failed requests; ensure stable internet access.
Links and References
- Instagram Private API Documentation (third-party) — For understanding underlying API methods used.
- n8n Documentation — For general guidance on using and configuring nodes and credentials.