VK icon

VK

Работа с API ВКонтакте (личная страница)

❤️ Взаимодействия → Написать комментарий

AI-generated

Summary

Post a comment on a VKontakte wall post by specifying the wall owner's ID, the post ID, and the comment text.

Inputs

  • ID владельца стены (required) — Numeric ID of the wall owner; use a negative number for communities.
  • ID записи (required) — Numeric ID of the post to comment on.
  • Текст комментария (required) — The text content of the comment to be posted.

Output shape

A single JSON object containing the created comment's ID, wall owner ID, post ID, and a status indicating creation success.

Returns { comment_id, owner_id, post_id, status: 'created' } on success; errors are thrown otherwise.

Examples

Example 1: Commenting on a user’s wall post

Set ownerId to the user’s VK ID, postId to the post to comment on, and write the message to post as comment text.

Links

Discussion