Hi, I have problems with add like button for fb. Because I have many articles on site, any of this have own id. URL for some my articles is:
http: //www.ustedi.034.rs/index.php?=detalji?12
But when add like button, and click on them, i get this URL on facebook pages:
http: //ustedi.034.rs/index.php?=detalji%3F12
Why "%3F" replace "?"
My code for like button is
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo curPageURL();?>; layout=button_count&show_faces=true&width= 148&action=like&colorscheme=light&heig ht=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:148px; height:21px;" allowTransparency="true"></iframe>
Anyone can help me ?