使用“赞”按钮

发布于 2024-12-28 20:24:49 字数 214 浏览 4 评论 0原文

我想将 Facebook LIKE 按钮添加到网站页面。有几点:-

  1. 网页有图像背景,所以我想要背景 LIKE 按钮是透明的。面子书创作的基本工具 该按钮仅允许深色或浅色背景。我该如何改变 那?
  2. 该网页有很多新闻,我想使用 LIKE 每个新闻项目后面的按钮,以便只有该项目出现在用户上 FB 页面。我是否可以简单地调整 FB 代码中的 URL? 工具返回?

I want to add the Facebook LIKE button to a page on a website. There are a couple of points:-

  1. The webpage has an image background so I want the background to the
    LIKE button to be transparent. The basic tool on face book to create
    the button only allows a dark or light background. How can I change
    that?
  2. The webpage has a number of news items and I want to use the LIKE
    button after each news item so only that item appears on the users
    FB page. Am I simply able to adjust the URL in the code that the FB
    tool returns?

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

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

发布评论

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

评论(2

多孤肩上扛 2025-01-04 20:24:50

根据此线程,“喜欢”按钮的样式选项有限:

Custom Skin for facebook like按钮

这将实现您尝试使用“共享”按钮执行的操作:

<a type="button" href="http://www.facebook.com/sharer/sharer.php?u=http://mywebsite.com">
<img style="cursor:pointer" src="/images/customfacebookpic.png" />
</a>

The "Like" button has limited options for styling according to this thread:

Custom skin for facebook like button

This will achieve what you are trying to do using a "Share" button:

<a type="button" href="http://www.facebook.com/sharer/sharer.php?u=http://mywebsite.com">
<img style="cursor:pointer" src="/images/customfacebookpic.png" />
</a>
挽梦忆笙歌 2025-01-04 20:24:50

Facebook 故意删除了“点赞”按钮的样式,并且我们只能有限地更改它(只有淡色/深色)。请参阅此帖子:http://forum.developers.facebook.net/viewtopic.php ?pid=236534

如果您使用 back machine,您可以看到过去如何通过添加 css 参数来设置按钮的样式。

Styling of the like button was intentionally removed by Facebook and they give us limited availability to change it (just lite/dark). See this post: http://forum.developers.facebook.net/viewtopic.php?pid=236534

And if you use the way back machine, you can see how you used to be able to style the button by adding the css parameter.

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