R
R
Roman Malyshkin2016-10-25 21:31:13
PHP
Roman Malyshkin, 2016-10-25 21:31:13

VK API: how to display all posts using the wall.get method?

Welcome all. I decided to deal with the VK API.
I want to display all the posts from the group walls, but only 5-6 posts are displayed, although much more should be displayed.

$wall = file_get_contents("http://api.vk.com/method/wall.get?owner_id=-95098766&v=5.52");
  $wall1 = json_decode($wall,null,512);
  $stop=$wall1->response->count;
  for ($i=0;$i<$stop;$i++)
  {
    $way=$wall1->response->items[$i]->copy_history[0]->text.'</br>';
    print_r($way);
  }

Please help me figure out the tricks of VK)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2016-10-25
@Sanasol

count - Number of posts to return (maximum 100).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question