Пытаюсь реализовать расшаривание статьи для вконтакте. Вот делаю так, но почему то description не считывается при репосте(но ломается, если description слишком большое). Как правильно расшарить для репоста на стену или в сообщение правильно?
shareBook(book) {
const {infoLink, title, imageLinks, description} = book.volumeInfo;
const URL = infoLink || window.location.href;
const TITLE = title || 'Без названия';
const IMG_PATH = imageLinks && imageLinks.thumbnail;
const TEXT = description || 'Без описания';
const Share = {
vkontakte: function(purl, ptitle, pimg, text) {
let url = 'https://vk.com/share.php?';
url += 'url=' + encodeURIComponent(purl);
url += '&title=' + encodeURIComponent(ptitle);
url += '&description=' + encodeURIComponent(text);
url += '&image=' + encodeURIComponent(pimg);
url += '&noparse=true';
Share.popup(url);
},
popup: function(url) {
window.open(url,'','toolbar=0,status=0,width=626,height=436');
}
};
Share.vkontakte(URL,TITLE,IMG_PATH,TEXT);
},