From the below code you can get the Current page Url in magento
<?php
echo $currUrl= $this->getUrl('').$_SERVER['REQUEST_URI'];
?>
Now Write this code into the header/footer section of your site To see the Share Button
<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php?u=<?php echo $currUrl;?>">Share</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
thank you for share this tutorial
ReplyDeleteExcellent I was searching for long time on net and finally got your code. Once again thanks.
ReplyDelete