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

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

问题描述

我想在发送给我们电子通讯订阅者的电子邮件中添加一个赞"按钮.使用 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.

我想要做的是有一个静态超链接,点击按钮图片只会转到我们对应的 Facebook 页面的特定 URL,并执行成为粉丝的操作.

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.

有人能找到一种官方或非官方的 URL 链接,将您带到 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.

一种方法是让电子邮件旨在让人们访问您自己网站上的登录页面.然后,您可以在其上设置一个喜欢按钮,并使用 开放图谱协议 元标记将该喜欢"应用于家庭页面或整个网站.

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天全站免登陆