Answer the question
In order to leave comments, you need to log in
How does Vkontakte sharing work?
Problem:
There are several articles on the site page, each with its own Vkontakte sharing button. It is necessary that when it is pressed, all the fields of the "Share with friends" window are filled with what I need. Actually substitute your link, title, description and picture, depending on the article to which the button belongs. I figured out the principle of its operation, you just need to pass these parameters with the necessary settings, tobish in:
VK.Share.button({
url: 'http://mysite.com',
title: 'Хороший сайт',
description: 'Это мой собственный сайт, я его очень долго делал',
image: 'http://mysite.com/mypic.jpg',
noparse: true
}, {type: 'link'});
Answer the question
In order to leave comments, you need to log in
Try to do it with this project https://github.com/enjoyiacm/goodshare.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question