Magento - Setting Facebook Likes
Social networks such as Facebook, Twitter and Google Plus have become a powerful means of promoting online stores. Facebook provides a "Like" button that allows users to share product content over the Internet.
The following steps show how to add a Facebook Like button for your Magento products −
tep 1 − Go to the Facebook Developer site https://developers.facebook.com/docs/plugins/like-button and click the Get Code button .
Step 2 − When you click the Get Code button , a window will appear as shown in the following screen.
Step 3 - Open the file i.e. /app/design/frontend/base/default/template/productalert/product/view.phtml in Magento and paste the code below on line 50.
<div class = "fb-like" data-href = "https://developers.facebook.com/docs/plugins/" data-layout = "standard" data-action = "like" data-show-faces = " true" data-share = "true" > </div>
Step 4 − Go to the System menu and click Manage Cache to refresh the cache.
Step 5: In the Manage Cache Storage section , select the items from the Cache Type column for which you want to refresh the cache. Select the Refresh option from the Actions box in the right corner and click the Submit button to refresh the cache.
Step 6 - After updating the cache, log out of your admin panel and log in again. Refresh the product view page to see the Facebook Like button.