How to add facebook share button in magento

You can get Facebook share button from But to add this in magento you need to get the current page url.

From the below code you can get the Current page Url in magento

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="<?php echo $currUrl;?>">Share</a>
<script src="" type="text/javascript"></script>