T
T
Timur Tuz2015-10-09 09:39:19
In contact with
Timur Tuz, 2015-10-09 09:39:19

How to display the wall of the VKontakte group on your website?

I want to somehow connect the wall of the group and the site. So that users can post here and there in the "common pot".
I see a separate comments widget and a separate group / post widget in which you can’t comment, but only subscribe. How can this issue be overcome?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill, 2015-10-09
@skv1991

First get apiID , then: Include
Open API
Then add JS

VK.init({
  apiId: ВАШ_APIID
});
// Код для вызова в методе execute
var code;
code = 'return {';
code += 'data: API.wall.get({owner_id: OWNER, offset: 0, count: 15, filter: all, v: "5.37"})';
code += '};';
// сам метод execute, выполняет созданный код
VK.Api.call('execute', {code: code, v: "5.37"}, function(r){
  if (r.response){
      if (r.response.data){
          console.log(r.response.data);
      }
  }
});

Where YOUR_APIID is your Api ID, OWNER is the user id (the group id starts with a "-" sign, i.e. -999999 for example).
offset - offset from the first record
count - number of records
filter - record filter (all - all).
Try to think out the implementation of sending comments yourself in a similar way.
execute
wall.get
wall.post
Create application
Tried to make an alternative group widget.

W
Wheelie, 2015-10-09
@Wheelie

https://vk.com/dev/wall.get
https://vk.com/dev/wall.post
etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question