Facebook像按钮没有正确实现

时间:2011-12-23 07:56:04

标签: facebook-like required

我已经使用iframe代码实现了fb like button

当我点击按钮时,它会增加当前页面的数量,但不计入fb帐户的数量

&安培;当有人喜欢它时,会自动在喜欢它的人的个人资料中添加一些评论。如何改变

由于

我的代码就是这个

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

1 个答案:

答案 0 :(得分:0)

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