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.'&layout=standard&show_faces=false&width=450&action=like&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.
精彩评论