How to change the Share button on Facebook?

Using the Facebook-share HTML5 code, this gives us the following code:

<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-type="button_count"></div>

Is there a way to change the image I like?

I also tried the link option, but there is still no way to add a custom image:

<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-type="link"></div>
+4
source share
2 answers

Click the sharing button, copy the address bar and paste it into the URL section below.

<a target="_blank" href="javascript:window.open('URL','title','width=500,height=300')">
<img src="img.jpg">
</a>

Now you can put something between the tags and click it to share it.

+4
source

Nice ... Everything is working fine, but you just need to make the dynamic name of your bullet or image that you want to use in the url.

-2
source

Source: https://habr.com/ru/post/1532407/


All Articles