如何使Facebook“赞”按钮只是一个链接,而不是iFrame? [英] How to make a Facebook "Like" button that is just a link, not an iFrame?

查看:56
本文介绍了如何使Facebook“赞”按钮只是一个链接,而不是iFrame?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在电子邮件消息中添加一个赞按钮,以发送给我们的电子通讯订阅者。嵌入使用Like按钮(使用iframe技术)的通常方法无法正常工作。

I would like to put a "Like" button into an email message that it going out to our e-newsletter subscribers. The usual way of embedding a Like button, which uses, an iframe technique, is not going to work.

我想做的是拥有一个静态超链接,在此处单击按钮图像将仅转到一个特定的URL,即我们相应的Facebook页面,并进行成为粉丝的操作。

What I would like to do is to have a static hyperlink, where clicking on the button image will just go to a particular URL that is our corresponding Facebook page, and do the action of becoming a fan.

有人可以找出一个官方官员吗?还是可以链接到的非官方网址会将您带到Facebook上的页面并执行适当的操作?

Can anybody figured out an official or unofficial kind of URL that one could link to that takes you to the page on Facebook and performs the appropriate action?

推荐答案

它如果某个链接可能迫使该操作发生,那将是一个非常不安全的系统。人们会喜欢他们不想去的所有商店。想象一下,公司在Twitter上发送缩短的URL并获得数百个非法赞是多么容易。

It would be a horribly insecure system if a link could force the action to happen. People would be 'liking' things all the shop that they didn't want to. Imagine how easy it would be for companies to send out a shortened URL on twitter and get hundreds of illicit 'likes'.

最好让人们自己明确地这样做,这样从电子邮件中,您能做的最好的就是将人们链接到Facebook页面,并希望他们会像这样单击。如果页面很好/有用,那么他们将很有可能。

It's better to let people do that explicitly themselves so from an email the best you can do is to link people to the facebook page and hope they'll click like. If it's a good/useful page then chances are they will.

一种方法是使电子邮件旨在将人们引到您自己网站的目标网页上。然后,您可以在其上设置一个喜欢按钮,并使用 Open Graph Protocol 元标记将喜欢应用于首页页面或整个网站。

One approach is to have the email aimed at getting people to a landing page on your own site. You can then have a like button on that and using the Open Graph Protocol meta tags have that 'like' applied to the home page or whole site.

如果您希望着陆页上的喜欢按钮成为整个网站的通用按钮,请使用规范的og:url元标记,例如:

If you want your like button on the landing page to be a general one for the entire site then use the canonical og:url meta tag eg:

<meta name="og:url" content="http://yoursite.com/" />

这篇关于如何使Facebook“赞”按钮只是一个链接,而不是iFrame?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆