How to add a Facebook like button to email

18,926

Solution 1

You can not do this - "like" buttons can only be attached to URL's. If you have a URL that somehow represents that specific email message then you might be able to get away with that.

Another thing to note is that not all email clients allow (by default) HTML content in the body of the email message - especially not iFrames...

What you might want to do is simply place a link to your website inside the email message and once the user lands on your website he/she can decide whether or not they want to "like" your URL.

Solution 2

You can create an html version of your email (if you have a website), and instead of the person seeing the content within the email, they are now on an html version of that site on your website. In your email it would be an image or similar that says [VIEW EMAIL] or something like that. That will link to the HTML version mentioned above. You can create the LIKE button on that page which can then post on their timeline. Hope that helps!

Solution 3

Add https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.YOURWEBSITEADDRESS.com%2F to your href. It will open a Facebook like/share page.

Solution 4

You can do it with the following link: https://www.facebook.com/plugins/like.php?href=http://www.facebook.com/yourpagename

This will open a new tab with a like button and a list of the users friends who already like the page...

Solution 5

I tried it using Gmail. It will show you full codes and your like button URL will be a clickable link. So, it's just not possible to add a Facebook button. I tried both iframe and JavaScript versions.

Share:
18,926
Miuranga
Author by

Miuranga

computer science undergraduate in uva wellassa university badulla Sri lanka

Updated on June 04, 2022

Comments

  • Miuranga
    Miuranga almost 2 years

    How do I add a Like button is on the actual email that I send, and clicking it leads to a landing page on my website?

    That means I want to add a Like button with HTML email newsletter that I send. And if anyone like it after that, I want to redirect them to my site.