Mobile app version of vmapp.org
Login or Join
Lee4591628

: Facebook like button in plain HTML, is it possible? just a quick question, is it possible to create an FB Like button in plain HTML? I checked out the Like button code dircetly cerated by

@Lee4591628

Posted in: #Facebook #Links #SocialMedia

just a quick question, is it possible to create an FB Like button in plain HTML?

I checked out the Like button code dircetly cerated by developers.FB but it's an

<iframe src="http://www.facebook.com/plugins/like.php?href=...></iframe>


I also checked out the addthis.com and it's a bunch of Javascript.

I mean: is there a way to just use something simple? Example:

<a href="http://www.facebook.com...?page=my-fb-page..." rel="nofollow">FB like, click here</a>


I know in this way it won't show anymore "how many people like", but I don't mind this, I just want something simple, so I can use my own icon or text, etc.

In my understanding for the Share button is possible by just adding:

<a href="http://www.facebook.com/share.php?u=your-percent-encoded-url-of-your-site-page.hmtl">To share on FB click here.</a>


So i suppose it could be possible also for the Like button.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Lee4591628

2 Comments

Sorted by latest first Latest Oldest Best

 

@Deb1703797

A sort of work around could be to create also a FB page for your website, then you add a small FB icon on your website that links to the FB page. :)

It wouldn't be as trivial for final user as clicking the FB "Like button", cause it would have to visit your FB page and then click the Like button over there.

At least for FB we have this sort of work around, for Google +1 button there seems to be no way other than including their API.

As a side note, I have to say that it's quite irritating to almost be forced to place all these JS code from Google + FB on my pages, they could sniff/track visits and other stuff on my sites, but I suppose we have no more chances to avoid adding such buttons in now days. :(

10% popularity Vote Up Vote Down


 

@Pope3001725

I don’t believe that this can be done. The code for the like button has to determine if you are logged into an account and if so, whether or not you’ve liked the topic already. This couldn’t be done in plain HTML. The closest you could get is the iframe that you mentioned.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme