I
I
Igor Deryabin2011-10-02 08:46:44
API
Igor Deryabin, 2011-10-02 08:46:44

VKontakte API: recent comments

How can I get a list of recent comments using the API, similar to the list on the Comments tab in News?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
stetzen, 2012-05-12
@stetzen

Of course, I understand that this is necroposting, but suddenly it will come in handy for someone. By viewing the traffic of the VKontakte client for Android, a request was found (for convenience, I break it into lines)
api.vk.com/method/newsfeed.getComments?
v=3.0&
last_comments=1&
count=20&
photo_sizes=1&
from=0&
access_token=<....>&
filters=post%2Cphoto%2Ctopic&
sig=<....>
It's not in the documentation, so the necessary privileges, as well as the possible values ​​of the from and last_comments parameters are a mystery to me

R
Riateche, 2011-10-02
@Riateche

The only way I see is to get the list of posts with wall.get and get the list of comments for each post with wall.getComments (only available for desktop apps). Also check out newsfeed.get, there's a lot of stuff in there, but I couldn't find a list of comments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question