Facebook Like 按钮未正确实施

发布于 2024-12-22 12:24:44 字数 1183 浏览 2 评论 0 原文

我已经使用 iframe 代码实现了 Facebook 类似按钮,

当我单击“类似”按钮时,它会增加当前页面上的计数,但不计入其创建的 Facebook 帐户

。当有人喜欢它时,会自动在喜欢它的人的个人资料上添加一些评论。如何更改,

谢谢,

我的代码是这个

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>IE Guild Technologies</title>
<meta property="og:title" content="IE Guild" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://www.ieguild.in" />
<meta property="og:image" content="" />
<meta property="og:site_name" content="IE Guild Technologies" />
<meta property="fb:app_id" content="236267259748081" />

& iframe代码

<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fieguild.in&amp;send=false&amp;layout=button_count&amp;width=50&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21"
                            scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 100px;
                            height: 21px; background-color: Transparent;"></iframe>

i have implemented fb like button using iframe code

when i click like button it increases count on the current page but count not on fb account for which it is made

& when someone likes it like automatically add some comments on the person's profile who liked it. how to change that

Thanks

my code is this

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>IE Guild Technologies</title>
<meta property="og:title" content="IE Guild" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://www.ieguild.in" />
<meta property="og:image" content="" />
<meta property="og:site_name" content="IE Guild Technologies" />
<meta property="fb:app_id" content="236267259748081" />

& iframe code

<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fieguild.in&send=false&layout=button_count&width=50&show_faces=false&action=like&colorscheme=light&font&height=21"
                            scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 100px;
                            height: 21px; background-color: Transparent;"></iframe>

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

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

发布评论

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

评论(1

多孤肩上扛 2024-12-29 12:24:44

这些计数专门针对 http://www.ieguild.in,而不是 http://www.ieguild.in/default.htmlhttp://www.ieguild.in/index.php,因此当您查看点赞数时,请确保您知道被点赞的实际 URL。另外,您并不是要求用户喜欢您的应用程序“fb:app_id”content =“236267259748081”,只是您指定的网址。因此,如果您想让用户喜欢您的应用,那么您需要更改类似代码以指向以下网址 https://www.facebook.com/apps/application.php?id=236267259748081 (当然发布您的应用程序页面也会有所帮助)

the counts are for specifically http://www.ieguild.in, and not http://www.ieguild.in/default.html or http://www.ieguild.in/index.php, so when you look at the like counts, be sure you know the actual URL being liked. Also, you're not asking the user to like your app "fb:app_id" content="236267259748081", just the url you specified. So if you want to have a user like your app, then you need to change the like code to point to the following url https://www.facebook.com/apps/application.php?id=236267259748081 (and of course publishing your app page too would help)

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