How can you create a custom Like button?

Does anyone know if there is a way to use a custom LIKE button and make facebook calls like server side api? Ideally, I would like to have my own LIKE button, which calls my application, and also calls FB, like.

For example, Pandora seems to do this using the thumb button. I know that they were launch partners, so they may have special treatment.

THX!

+3
source share
3 answers

This is still not possible.

Pandora definitely has a special treatment (instant personalization). Quora also uses any whitelist so you can create a regular button.

, , .

+3

. Facebook .

+2

Yes, you can! All you have to do is use any image you want, for example:

<img src="custom-facebook-image.png" />

And then associate it with the Facebook URL as follows:

http://www.facebook.com/sharer.php?u=http://www.example.com&t=CustomTitle

Just make sure you escape all the characters in the url and you can add it as href:

<a href="http://www.facebook.com/sharer.php?u=http://www.example.com&t=CustomTitle">
    <img src="custom-facebook-image.png" />
</a>
+1
source

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


All Articles