# mageplaza/magento-2-facebook-plugin

> Magento 2 Facebook Plugin Extension

`composer require mageplaza/magento-2-facebook-plugin`

Canonical URL: https://packagento.com/mageplaza/magento-2-facebook-plugin

## At a glance

- **Vendor**: mageplaza (https://packagento.com/mageplaza.md)
- **Latest version**: 1.0.4 — released 2021-11-22
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/mageplaza/magento-2-facebook-plugin and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require mageplaza/magento-2-facebook-plugin:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Magento 2 Facebook Plugin Extension

## README


**[Magento 2 Facebook Plugin by Mageplaza](http://www.mageplaza.com/magento-2-facebook-plugin/)** helps stores to integrate Facebook page into the shopping sites. **Facebook Plugin extension** creates the convenience for customers to access stores’ information as well as contact stores easily. As a result, the number of followers to the Fan page increases significantly and the conversion rate rises accordingly. 

[![Latest Stable Version](https://poser.pugx.org/mageplaza/module-facebook-plugin/v/stable)](https://packagist.org/packages/mageplaza/module-facebook-plugin)
[![Total Downloads](https://poser.pugx.org/mageplaza/module-facebook-plugin/downloads)](https://packagist.org/packages/mageplaza/module-facebook-plugin)


### 1. Documentation

- [Installation guide](https://www.mageplaza.com/install-magento-2-extension/)
- [User guide](https://docs.mageplaza.com/facebook-plugin/index.html)
- [Introduction page](http://www.mageplaza.com/magento-2-facebook-plugin/)
- [Contribute on Github](https://github.com/mageplaza/magento-2-facebook-plugin)
- [Get Support](https://github.com/mageplaza/magento-2-facebook-plugin/issues)

### 2. FAQ

**Q: I got error: Mageplaza_Core has been already defined**

A: Read solution [here](https://github.com/mageplaza/module-core/issues/3).

**Q: I would like to locate our Fanpage on any places on the sites. Is it possible?**

A: Yes. Please create Facebook Widget from Block section from the backend,  then embed it on any CMS page or block. 

**Q: Which tabs can I add to Facebook Plugin on site?**

A: The tabs can be selected to display including: Timeline, Event and Messages

**Q: Can our customers like or share our Fanpage?**

A: Yes, absolutely. Like button will display automatically.  Share is one type of Call to Action buttons which you can turn on/ turn off from the admin backend. However, please make sure that Share button is already configured in your Fanpage. 

**Q: I want to add comment box on Product Page so our customers to leave questions. How can I do?** 

A: You should enable Facebook comment from the admin backend so that Comment Tab will display on Product Page. Customers will login their Facebook account to leave their questions or feedback easily. Note that this extension is properly compatible with [Social Login](https://www.mageplaza.com/magento-2-social-login-extension/). 

**Q: Can I adjust the size of Facebook Plugin to suit my store size?** 

A: Yes, definitely. From the backend, please set width and height for the plugin. 

### 3. How to install Magento 2 Facebook Plugin extension

Install via composer (recommend)

Run the following command in Magento 2 root folder:
With Marketing Automation (recommend):
```
composer require mageplaza/module-facebook-plugin mageplaza/module-smtp
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
```

Without Marketing Automation:
```
composer require mageplaza/module-facebook-plugin
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
```


### 4. Facebook Plugin Highlight Features

#### Integrate Facebook information into store website

![Magento 2 Facebook Plugin extension](https://i.imgur.com/Fyl7n3f.png)

**Mageplaza Facebook Extension** enables the admin to add tabs on Facebook Page on store website with 3 options: **Timeline, Event and Messages**. By embedding **Facebook Feed** on your website, the store owner can display all the latest updates on Timeline, Event, Messages to customers visiting their site.

Each of these 3 tabs takes a specific function:
- **Timeline tab** for all latest news on products and history
- **Event tab** for upcoming events
- **Messages tab** for interacting between store’s admin and visitors.

#### Facebook Comments Widget

![Magento 2 Facebook Comments Widget](https://i.imgur.com/l1bc3dY.png)

**Magento 2 Facebook Widget** allows the customer to leave their comment with ease, right on the website’s product page. Right here customers can post their feedback, questions about the product which they are interested in, by using their own Facebook account. This extension is really supportive to the store’s admin, which allows customers who left comments to get Facebook notifications right when the admin respond. 

More amazing, any other visitors can easily see already-answered questions and feedbacks to get more information about the product. It is undeniable that a product page with feedbacks and comments of many customers is likely to be trusted by new visitors. They will feel that the site is well interacting and have tendency to spend more time finding out about the product.

Additionally, the store owner can swiftly manage comments on Facebook by Facebook apps.

#### Enable Call-to-action button 

![facebook login3](https://i.imgur.com/tvwt9Kz.png)

To optimize digital advertising, Facebook Extension allows adding Call-to-action button. The button’s name is based on the configuration on Facebook (according to particular campaigns). The possible buttons are **Share, Call Now, Register Now, or Watch Video**. Call-to-action button plays an indispensable role in motivating visitors to take further interaction, which can turn them into real customers. This will significantly contribute to the store revenue.

#### Customizable Interface

![facebook login4](https://i.imgur.com/WHjIvFq.png)

The design of Facebook Plugin can be set from the backend. The elements which are possible to customize are: width, height, header. Admin can select to enable/disable cover photo, profile photo and call-to-action button as well.

### 5. More Features

#### Comments number limitation

Admin can limit the number of comments which are displayed by Facebook Plugin.

#### Insert snippet code to any CMS

Embed snippet code to any CMS block and CMS page on website easily.

#### Mobile-friendliness

Facebook Plugin can work well on both

_(README truncated for .md surface. Full README on https://packagento.com/mageplaza/magento-2-facebook-plugin.)_

## Changelog

CHANGELOG: https://www.mageplaza.com/releases/facebook-plugin/

## Recent Versions

| Version | Released |
|---|---|
| 1.0.4 | 2021-11-22 |
| 4.0.1 | 2021-11-22 |
| 4.0.0 | 2021-04-20 |
| 1.0.3 | 2021-02-17 |
| 1.0.2 | 2019-06-11 |
| 1.0.1 | 2018-12-18 |
| 1.0.0 | 2018-12-03 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| mageplaza/module-core | ^1.4.5 |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["mageplaza/magento-2-facebook-plugin"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

mageplaza is a Magento 2 vendor on Packagento. See https://packagento.com/mageplaza.md for their full catalogue.

