vk api get wall comments



  • <?php
    $query = file_get_contents("https://api.vk.com/method/wall.getComments?owner_id=55692777&post_id=3335118");
    $query = json_decode($query);
    var_dump($query);
    ?>
    

    Come back.

    Access denied: post was not found check post_id param
    

    Where did you make a mistake? Thank you, everyone.



  • Wrong owner: https://vk.com/id55692777 No.

    Maybe you're not interested in a camper, but... community with that id. In this case, in the method https://vk.com/dev/wall.getComments I need to hand it over to id with minus:

    https://api.vk.com/method/wall.getComments?owner_id=-55692777&post_id=3335118&v=5.58
    

    https://api.vk.com/method/wall.getComments?owner_id=-55692777&post_id=3335118&v=5.58 It works.

    Don't forget to transmit the API version in the parameter. vas in future requests without specified versions https://vk.com/wall-1_340400 ♪


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2