Good day to all forum users! The situation is as follows: there is a javascript code for adding on the site page a vkontakte share button. If there are several pages, with different URLs, then when clicking from each page on the created button, different links are obtained to different pages of the site in social. network. And if the URL of the pages is the same, and the content changes dynamically using ajax by clicking on the internal links of the page, then how to get the links in the social. network for different content? Those. I have for different content should be different links in the social. network, and it turns out only one link to the page with the base URL. How to be? Has anyone come across this?

    1 answer 1

    Well, who's stopping to change and URL for social network buttons using java script? Or a script that "brings" content, brings and button?

    • The fact is that different content is brought to the page elements, and the URL is one for the whole site and does not change ( - aavd
    • But why can't it be changed dynamically? - KoVadim
    • You can implement it but you need to understand all the APIs, it's easy and simple, it is done only with Facebook ... - Zowie
    • Yes, it will be difficult with VKontakte ... - KoVadim