Answer the question
In order to leave comments, you need to log in
Method wall.getReposts VK API not working correctly?
The wall.getReposts method in {response}->{profiles} returns only an array of users who made reposts with the "subscript". For example, for a post, the number of reposts = 5, although in reality it was shared by > 70 people
Is this normal? How to get all reposts?
UPD: Apparently this is an API bug, and they haven't been able to fix it for a year now. If any of the local users communicate with the VK developers, please help draw attention to the problem.
Answer the question
In order to leave comments, you need to log in
It does not work, I have been asking since September 2015, there is no clear answer
July 2016 already. Checked, still the same bug, does not work as it should
In general, I arrived from the future, and specifically from 2020, and I want to tell you that the bug has not yet been fixed, Bring back Pavel Durov! This is exactly how VKontakte
support works.
And to be honest, it ’s December 7, 2017 , and the bug is still NOT fixed.
It's a shame that in almost 3 years they couldn't fix such a stupid bug ..
Meanwhile, it's 2021...
Either the bug is still there, or the skis aren't working...
If anyone else is looking for an answer to this question. The answer is in the iterative selection at the moment, this is a general solution, this kind of queries, so as not to put the database and not overload the network with data, which can be really a lot. Therefore, in each request, two parameters, offset and count, must be passed in order to move to the next page of records.
For example:
There are 1500 records in total.
Then you need to make two queries:
1. The first with offset=0, count=1000
2. The second with offset=1000, count=1000
Thus, we will get all the records.
Also pay attention to the limit on the number of requests (3 requests per second for user access) and that in order to get reposts you need to have access to them (Usually a group admin).
If the limits are exceeded, you can get a "ban" on this request, I did not find it in the dock for how long and whether it exists in general.
More details on the API account: https://vk.com/dev/wall.getReposts
Request limits (3rd block "Restrictions and recommendations"): https://vk.com/dev/api_requests
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question