N8N Tools - LinkedIn Enhanced icon

N8N Tools - LinkedIn Enhanced

Comprehensive LinkedIn Marketing API v2 integration for N8N workflows with B2B marketing and networking features

Posts → Like Post

AI-generated

Overview

The "Like Post" operation in the Posts resource allows users to programmatically like a LinkedIn post on behalf of a specified author (which can be a person or an organization). This node is useful for automating engagement activities on LinkedIn, such as liking posts to increase visibility, support colleagues or partners, or manage social media interactions at scale.

Common scenarios:

  • Automatically liking posts from specific authors or companies as part of a marketing workflow.
  • Engaging with content during social media campaigns without manual intervention.
  • Integrating LinkedIn post likes into broader CRM or marketing automation systems.

Example:
A marketing team wants to automatically like all posts from their company page or key influencers. Using this node, they provide the LinkedIn Post ID and the Author ID representing the user or organization performing the like action, and the node sends the like request via the LinkedIn API.


Properties

Name Meaning
Author ID The LinkedIn Author ID (person or organization) who will perform the like action.
Post ID The LinkedIn Post ID identifying the post to be liked.

Output

The output JSON contains the response from the LinkedIn API after attempting to like the specified post. Typically, this will include confirmation of the like action or relevant metadata returned by the API.

If the operation fails, the node can output an error object describing the failure if "Continue On Fail" is enabled.

No binary data output is associated with this operation.


Dependencies

  • Requires a valid API key credential for the external service called "N8N Tools API" which validates subscription and API key before executing LinkedIn operations.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node uses the LinkedIn Marketing API v2 endpoints through a helper class to perform the like action.
  • Proper configuration of these credentials and permissions is necessary to successfully perform the like operation.

Troubleshooting

  • Invalid Subscription or API Key:
    Error message: "N8N Tools API: Invalid subscription or API key. Please check your credentials."
    Resolution: Verify that the API key credential is correct and active.

  • LinkedIn API Errors:
    Errors related to invalid Post ID or Author ID may occur if the IDs are incorrect or the authenticated user lacks permission to like the post.
    Resolution: Confirm that the Post ID exists and the Author ID corresponds to an authorized LinkedIn member or organization.

  • Permission Issues:
    If the OAuth2 token does not have sufficient scopes to perform the like action, the API call will fail.
    Resolution: Ensure the OAuth2 credentials include the required LinkedIn permissions for post engagement.

  • Rate Limits:
    LinkedIn API enforces rate limits; excessive requests may result in throttling errors.
    Resolution: Implement retry logic or reduce request frequency.


Links and References


This summary focuses specifically on the "Like Post" operation within the Posts resource based on the provided source code and property definitions.

Discussion