- Magento Basics Tutorial
- Magento - Home
- Magento - Overview
- Magento - Installation
- Magento - Architecture
- Magento Store Setup
- Magento - Product Overview
- Magento - Setup Languages
- Magento - Setup Contact
- Magento - Setup Categories
- Magento - Setup Products
- Magento - Setup Inventory
- Magento - Setup Taxes
- Magento - Setup Shipping Rates
- Magento - Setup Payment Plans
- Magento - Setup Payment Gateway
- Magento - Setup Payment Methods
- Magento - Setup Currencies
- Magento - Setup Check Out Options
- Magento - Setup Paypal Payment
- Magento - Setup Google Checkout
- Magento - Setup Store Live
- Magento Order Processing
- Magento - Orders Life Cycle
- Magento - Setup Order Options
- Magento - Setup Order Emails
- Magento - Create Orders
- Magento - Manage Orders
- Magento System Setup
- Magento - Setup Customers
- Magento - Setup Google Analytics
- Magento - Setup Pretty URLs
- Magento - Setup Youtube Video
- Magento - Setup Facebook Likes
- Magento - Setup Translation
- Magento - Setup System Theme
- Magento - Setup Page Title
- Magento - Setup Page Layout
- Magento - Setup New Pages
- Magento - Setup CMS
- Magento - Setup Newsletter
- Magento Optimization
- Magento - Site Optimization
- Magento - Profiling
- Magento - Database Performance
- Search Engine Optimization
- Magento Useful Resources
- Magento - Questions and Answers
- Magento - Quick Guide
- Magento - Useful Resources
- Magento - Discussion
Magento - Setup Facebook Likes
Social networks such as Facebook, Twitter and Google Plus have become powerful for promoting the web shops. Facebook provides "Like" button which allows users to share contents of the products across the web.
The following steps show you how to add Facebook Like button for your Magento products −
Step 1 − Go to developer site of Facebook https://developers.facebook.com/docs/plugins/like-button and click on Get Code button.
Step 2 − When you click on the Get Code button, a window will get 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 the Magento and paste the below code around the 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 on the Cache Management to refresh the cache.
Step 5 − Under Cache Storage Management section, select the items from the Cache Type column for which you need to refresh the cache. Select the Refresh option from the Actions field on the right hand corner and click on Submit button to refresh the cache.
Step 6 − After refreshing cache, logout from your admin panel and re-login. Refresh your product view page to see the Facebook like button.