Answer the question
In order to leave comments, you need to log in
How to get the reach value on a VK post?
There is a code
$wall = json_decode(file_get_contents('https://api.vk.com/method/wall.get?owner_id=-181643085&fields=id,text,date,views&access_token='.$token.'&v='.$v), true);
foreach ($wall['response']['count'] as $wall_get) {
echo $wall_get['views'];
}
Answer the question
In order to leave comments, you need to log in
Here is the documentation: https://vk.com/dev/objects/post
As far as I can see, coverage is not given there.
for some reason you are iterating over $wall['response']['count'] in the code - this is the same number-quantity, you need to iterate over $wall['response']['items'] - maybe this is the problem?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question