M
M
Mark2017-06-02 06:07:10
PHP
Mark, 2017-06-02 06:07:10

How to make a share button on Facebook, Odnoklassniki, Twitter?

Hello!
Help the old man please.
How to make a share/repost/retweet button.
In the social I don’t know much about networks, it’s clear that you need to take and copy-paste the code.
But I also need the link/path of the article to be present in the code, which I will insert with the Joomla code.
On VKontakte it worked, on the rest it doesn’t work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mark, 2017-06-02
@Mark54

<div class="ya-share2" data-services="collections,vkontakte,facebook,twitter" data-url="http://site.ru/news/$1" data-counter=""></div></div>
I did everything with one code

A
Andrey Burov, 2017-06-02
@BuriK666

https://developers.facebook.com/docs/plugins/share...
https://dev.twitter.com/web/tweet-button
https://apiok.ru/ext/like
Still, the documentation says

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question