N8N Tools VK icon

N8N Tools VK

Interact with VKontakte API

Posts → Repost

AI-generated

Overview

This node integrates with the VKontakte (VK) social network API, enabling automation of various VK platform actions. Specifically for the Posts resource and the Repost operation, it allows users to repost existing VK posts programmatically. This is useful for automating content sharing, cross-posting, or amplifying messages on VK without manual intervention.

Practical examples include:

  • Automatically reposting promotional posts from a company page to multiple groups.
  • Sharing user-generated content by reposting selected posts.
  • Scheduling reposts of important announcements or events.

Properties

Name Meaning
Count Number of items to return when fetching posts or related data. Default is 20.
Offset Offset for pagination to skip a number of items before starting to return results. Default is 0.

For the Repost operation specifically, the key input property used is:

Name Meaning
Object The identifier of the post or object to be reposted.

(Note: The "Object" parameter is required for the Repost operation but was not included in the provided properties JSON snippet.)

Output

The node outputs JSON data representing the result of the repost action as returned by the VK API. This typically includes information about the reposted item such as its new post ID and confirmation details.

If an error occurs during execution, the output JSON will contain an error field with the error message.

No binary data output is produced by this node.

Dependencies

  • Requires an API authentication token credential for VKontakte API access.
  • Uses the VKontakte API base URL: https://api.vk.com/method.
  • The node depends on an internal VKApi helper class to handle API requests.

Troubleshooting

  • Common issues:

    • Invalid or expired API token may cause authorization errors.
    • Incorrect or missing "object" parameter for reposting will cause failures.
    • Rate limiting by VK API if too many requests are made in a short time.
  • Error messages:

    • "Unknown operation: repost" — indicates the operation name was misspelled or unsupported.
    • API errors returned from VK will be passed through; check the error message for details.
  • Resolutions:

    • Ensure valid API credentials are configured.
    • Provide correct post/object identifiers for reposting.
    • Use the node's "Continue On Fail" option to handle individual item errors gracefully.

Links and References


This summary focuses on the Posts resource and the Repost operation as requested, based on static analysis of the provided source code and properties.

Discussion