Facebook喜欢按钮为电子邮件 [英] Facebook Like Button For Email
问题描述
我已经尝试过这篇文章,但由于某些原因,点击类似的按钮会打开一个空白页面。
任何帮助将不胜感激。
这是如何添加Facebook Like按钮,共享按钮和按钮。请注意:在哪里说 my-campaign-url.com
是电子邮件通讯的网页。用您自己的图像替换 img src
。另外我不知道你需要Facebook中的所有内容,但是可以用一些测试来清理它们。>
Facebook Like
< a title =像Facebook这样href =http://www.facebook.com/plugins/like。
php?href = http://my-campaign-url.com& amp; layout = standard& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; =光&放大器;放大器;高度= 427%20\" >
< img src =/ Images / network_icons / fblike-button-small.pngstyle =border:
0 none; alt =Like This on Facebook>< / a>
Facebook分享
< a title =在Facebook上分享href ='http://www.facebook.com/share.php?u = http:// my-campaign- url.com'>< img src ='/ Images / network_icons / fb-share.png'alt ='分享我的广告系列'/>< / a>
按钮
< a title =通过Twitter分享href =http://twitter.com/intent/tweet?
url = http://我的广告系列-url& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp;
< img src =/ Images / network_icons / tweet-button-small.png
style =border:0 none; alt =通过Twitter分享>< / a>
另一个(可能更容易)的选项。
使用AddThis服务进行电子邮件营销。 请参阅AddThis网站了解更多信息。示例代码跟随:
<! - AddThis Button BEGIN - >
<! - Facebook - >
< a href =http://api.addthis.com/oexchange/0.8/forward/facebook/offer?pco=tbx32nj-1.0&url=http%3A%2F%2Fmy-site .com%2新闻通讯& amp; amp; pubid = ra- [您的Google Analytics(分析)]target =_ blank>< img src =http://cache.addthiscdn.com/icons/v1/thumbs/32x32/ facebook.pngborder =0alt =Facebook/>< / a>
<! - Twitter - >
< a href =http://api.addthis.com/oexchange/0.8/forward/twitter/offer?pco=tbx32nj-1.0&url=http%3A%2F%2Fmy-site .com%2新闻通讯& amp; amp; pubid = ra- [您的Google Analytics(分析)]target =_ blank>< img src =http://cache.addthiscdn.com/icons/v1/thumbs/32x32/ twitter.pngborder =0alt =Twitter/>< / a>
<! - 其余的AddThis Services - >
< a href =http://www.addthis.com/bookmark.php?source=tbx32nj-1.0&=250&pubid=ra- [您的Google Analytics(分析)]添加; amp; url = http%3A%2F%2Fmy-site.com%2新闻稿target =_ blank>< img src =http://cache.addthiscdn.com/icons/v1/thumbs/32x32/ more.pngborder =0alt =更多.../>< / a>
Ok, so I've looked around a number of different websites but seem to get mixed information. Does anyone have any advice for implementing a Facebook Like button in an HTML email campaign?
I have already tried this article but for some reason, clicking the like opens a blank page with another like button. http://emailexpert.org/adding-a-facebook-like-button-to-your-email-template/
Any help would be appreciated.
Here is how you can add a Facebook Like button, Share Button, and Tweet Buttons. Please Note: Where it says my-campaign-url.com
is the webpage of the email newsletter. Replace img src
with your own image for the button. Also I am not sure you need everything in the Facebook button but you can clean it up with some testing =>
Facebook Like
<a title="Like this on Facebook" href="http://www.facebook.com/plugins/like.
php?href=http://my-campaign-url.com&layout=standard&show_faces=
false&width=450&action=like&colorscheme=light&height=427%20">
<img src="/Images/network_icons/fblike-button-small.png" style="border:
0 none;" alt="Like This on Facebook"></a>
Facebook Share
<a title="Share this on Facebook" href='http://www.facebook.com/share.php?u=http://my-campaign-url.com'><img src='/Images/network_icons/fb-share.png' alt='Share my campaign' /></a>
Tweet Button
<a title="Share Via Twitter" href="http://twitter.com/intent/tweet?
url=http://my-campaign-url&text=My%20Text%20-%20&via=My Name&">
<img src="/Images/network_icons/tweet-button-small.png"
style="border:0 none;" alt="Share Via Twitter"></a>
Another (possibly easier) option.
Use the AddThis Service for E-Mail Marketing. See AddThis site for more info. Example Code Follows:
<!-- AddThis Button BEGIN -->
<!-- Facebook -->
<a href="http://api.addthis.com/oexchange/0.8/forward/facebook/offer?pco=tbx32nj-1.0&url=http%3A%2F%2Fmy-site.com%2Fnewsletter&pubid=ra-[Your AddThis ID for Analytics]" target="_blank" ><img src="http://cache.addthiscdn.com/icons/v1/thumbs/32x32/facebook.png" border="0" alt="Facebook" /></a>
<!-- Twitter -->
<a href="http://api.addthis.com/oexchange/0.8/forward/twitter/offer?pco=tbx32nj-1.0&url=http%3A%2F%2Fmy-site.com%2Fnewsletter&pubid=ra-[Your AddThis ID for Analytics]" target="_blank" ><img src="http://cache.addthiscdn.com/icons/v1/thumbs/32x32/twitter.png" border="0" alt="Twitter" /></a>
<!-- Rest of AddThis Services-->
<a href="http://www.addthis.com/bookmark.php?source=tbx32nj-1.0&=250&pubid=ra-[Your AddThis ID for Analytics]&url=http%3A%2F%2Fmy-site.com%2Fnewsletter " target="_blank" ><img src="http://cache.addthiscdn.com/icons/v1/thumbs/32x32/more.png" border="0" alt="More..." /></a>
这篇关于Facebook喜欢按钮为电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!