开发者

Facebook like problem - same count for all post

I use this code to generate dinamicaly the like buttons:

<? $artlink = "开发者_如何学JAVA;http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?><iframe src="http://www.facebook.com/plugins/like.php?href='.$artlink.'&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none;margin-top:12px;overflow:hidden; width:450px; height:24px;"></iframe>

Every post has the same count of likes. What is the problem? I have Joomla 1.5.20, sef404 2.1, view and module caching. If I turn off the caching, it can't help.

My site: valovilag4.com

Many thanks!


You should encode your $artlink, I think the "special" characters are causing the problem.

Try this:

$artlink=urlencode($artlink);

Or use the XFBML version of the like widget.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜