G
G
Georgy Khasanov2020-02-17 19:36:33
In contact with
Georgy Khasanov, 2020-02-17 19:36:33

How to get comments from all posts of the VK API group?

How, using the wall.getComments method, to get new comments from any posts in the group?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2020-02-17
@sergiks

  1. collect post id via wall.get()
  2. for each collect comments via wall.getComments() ,sort: desc
  3. look at the received comments in the field dateor compare their id with previously saved ones to distinguish them from “old” comments.

Start with Get to know the VKontakte API .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question