In the open VKontakte group, a topic has been created in the Discussions, it has comments, we need to display them on the site - how can this be done?

These comments contain valuable customer feedback for us, which we would like to show in the Testimonials section of our site.

What solution can I use?

  • Of course, in VKontakte there is an opportunity to place a widget on the site, but we have another task: comments are already in the subject of the open group and need to be shown on the site. Asking customers to do this through a widget on the site is absurd!
  • It is stupid to copy the necessary code from the VKontakte page with pens and paste it along with the vk.com styles to us on the site via for example iframe. Tried, it turned out, that's just somehow it's completely crooked
  • Pick up the discussion page content in PHP from vk.com, remove the unnecessary from the code, leave only reviews and styles. We try, but somehow does not want to work for some reason so far
  • Through AJAX in JavaScript, pick up the page content, parse the DOM, and pull out the necessary elements (comments) by adding them to the right place in our page. Styles connect in advance.
  • 2
    The correct option is to use the VKontakte API. - Darth
  • Hmm, I didn't find something like that with them. - Enshtein
  • one
    @Enshtein vk.com/dev/main and specifically for comments from the wall: vk.com/dev/wall.getComments and the wall itself vk.com/dev/wall.get and for discussions: vk.com/dev/board. getComments - Alexey Shimansky
  • one
    For discussions, you need a board.getComments() method. @ Alexey Shimansky TS, not about the wall, but asks about the discussion, as I understood. - Sergiks
  • one
    @Enshtein data come in the form of json api.vk.com/method ... they will have to be parsed and put into markup that you yourself have made with your styles ... ... so that it looks like ....... peep styles from them)) - Alexey Shimansky

0