Facebook 的 Like 按钮的纯文本版本?

发布于 2025-01-08 15:00:01 字数 329 浏览 0 评论 0原文

有人觉得 Facebook Like 按钮过于侵入用户界面吗?就像它不适合,就像它是一些廉价的塑料制品?

有没有人用过 JS 或其他东西来制作像纯文本这样的替代品?如果是这样,是否有人做过 A/B 测试来看看它的性能是否与原始版本一样好?

此外,这是否会违反 Facebook 的服务条款:“您不得掩盖或遮盖我们社交插件的元素,例如“点赞”按钮或“点赞”框插件”?

http://jsfiddle.net/dwaynie/HqA3H/9/

谢谢!

Does anybody feel the Facebook Like button is too intruding in ones UI? Like it doesn't fit in, like it's some cheap plastic thing?

Have anybody ever used JS or something to make any alternatives like a plain text one? If so, has anybody ever done any A/B testing to see if it performs equally well to the original?

Moreover, would this violate Facebook's TOS saying "You must not obscure or cover elements of our social plugins, such as the Like button or Like box plugin"?

http://jsfiddle.net/dwaynie/HqA3H/9/

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

回首观望 2025-01-15 15:00:01

为 Facebook 和 Twitter 制作纯文本链接,并使用 CSS 进行样式设置。以下是创建链接的方法(带有适当大小的弹出窗口):

http://jsfiddle.net/c6XQT/< /a>

这是代码:

<a href="JavaScript:window.open('http://www.facebook.com/sharer.php?u=http://jsfiddle.net','','width=657,height=400,scrollbars=1')">Like</a>

<a href="JavaScript:window.open('https://twitter.com/share?url=http://jsfiddle.net&text=Check out this link:','','width=450,height=350')">Tweet</a>

Make text-only links for Facebook and Twitter and use CSS to do your styling. Here's how to create the links (with appropriately-sized pop-up windows):

http://jsfiddle.net/c6XQT/

Here's the code:

<a href="JavaScript:window.open('http://www.facebook.com/sharer.php?u=http://jsfiddle.net','','width=657,height=400,scrollbars=1')">Like</a>

<a href="JavaScript:window.open('https://twitter.com/share?url=http://jsfiddle.net&text=Check out this link:','','width=450,height=350')">Tweet</a>
爱冒险 2025-01-15 15:00:01

对“赞”按钮(以及所有其他社交插件)唯一允许的修改是通过代码生成界面http://developers.facebook.com/docs/reference/plugins/like/

The only allowed modifications to the Like button (and all other social plugins) are those achievable via the code generation interface http://developers.facebook.com/docs/reference/plugins/like/

心头的小情儿 2025-01-15 15:00:01

嗯,这就是我的想法。
一些谷歌搜索就成功了

http://jsfiddle.net/HqA3H/24/

在小提琴中在脚本标签之后,您可以看到

var fbURL = “http://www.facebook.com/plugins/like.php?href=http://www.lolwhuuutwtf.com&show_faces=trace&width=450&action=like&colorscheme=light”;

将 www.lolwhuuutwtf.com 更改为您的网站链接,它将正常工作:)
您可以向下滚动并查看 html,根据您的需要对其进行编辑,但请确保不要删除
'id="flb" onclick="insertLikeButton();"'
因为这会触发 javascript 等。

Well, here is what i've come up with.
A bit of googling did the trick

http://jsfiddle.net/HqA3H/24/

In the fiddle after the script tags, you can see

var fbURL = "http://www.facebook.com/plugins/like.php?href=http://www.lolwhuuutwtf.com&show_faces=trace&width=450&action=like&colorscheme=light";

Change www.lolwhuuutwtf.com to whatever your website link is and it will work just fine :)
You can scroll down and see the html, edit it to your needs but be sure not to remove
'id="flb" onclick="insertLikeButton();"'
Because that triggers the javascript and so on.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文