Im using facebooks code to allow users to share a link on their profile. the facebook code is
<script>function fbs_click()
{
u=location.href;
t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width= 626,height=436');
return false;
}
</script>
<a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">Share on Facebook</a>
The problem is, im using PHP mod_rewrite, so my url looks like mydomain/products/product_name
i.e it looks like a folder rather than a page and when i click on the Share With Facebook link, the facebook page opens but the link is not captured. If i change it to mydomain/product/product_name.php, it will work....


Reply With Quote

Bookmarks