Answer the question
In order to leave comments, you need to log in
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
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);
}
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question