【问题标题】:facebook like button not implemented correctlyfacebook like 按钮未正确实现
【发布时间】:2011-12-23 07:56:03
【问题描述】:

我已经使用 iframe 代码实现了类似 fb 的按钮

当我点击喜欢按钮时,它会增加当前页面上的计数,但不会计数它所针对的 fb 帐户

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

谢谢

我的代码是这样的

<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>

【问题讨论】:

  • 在此处添加代码,以便我们找到错误。

标签: facebook-like required


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多