I
I
Ingvar Von Bjork2019-09-19 15:11:26
In contact with
Ingvar Von Bjork, 2019-09-19 15:11:26

Why does wall.getReposts return empty arrays?

I call wall.getReposts like this:

$query = file_get_contents('https://api.vk.com/method/wall.getReposts?owner_id=-180920410&post_id='.$id.'&access_token=токен&v=5.101');

but the only response is this:
Array
(
    [response] => Array
        (
            [items] => Array
                (
                )

            [profiles] => Array
                (
                )

            [groups] => Array
                (
                )

        )

)

It seems that all the parameters were passed correctly, the token too, but why is the response empty?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2019-09-19
@trofimovdev

Because you need to read the documentation more carefully:

Please note that you can only get a list of reposts for a post created by the current user, or in a community where the current user is an administrator.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question