Magento 2 Facebook Store Integration: Promote Sales and Product Visibility in 11 Steps

Nicholas Samuel • Last Modified: December 29th, 2022

Magento(Adobe Commerce) is an E-commerce platform that business owners can use to run online shops. It scales well with the growth of your business and has out-of-the-box support for B2B functions. With Magento(Adobe Commerce), sellers can easily list their items to be seen by potential customers. Magento(Adobe Commerce) users can also customize the look and feel of their E-commerce Platforms using extensions. These extensions have been made available in the Magento(Adobe Commerce) Marketplace.

Initially, Social Media Platforms like Facebook were used for communication and entertainment. However, Social Media Platforms have now become marketplaces where sellers can list and sell their products. Sellers can now create Ads on Social Media to market their products. When selling on Facebook, sellers encounter challenges when listing items- as the process takes a long time regardless of the number of items. Thus, they need another way to make this easier. 

A Magento 2 Facebook Store integration can save sellers from this. After the integration, the process of listing items on Facebook will just take a few clicks. In this article, we will be discussing how to perform a Magento 2 Facebook Store integration. 

Table of Contents

Prerequisites for Magento 2 Facebook Store Integration

This is what you will need for Magento 2 Facebook Store integration:

  • A Magento Account. 
  • A Facebook Business Account. 
  • A Facebook Page. 

Understanding Magento(Adobe Commerce)

Magento 2 Facebook Integration - Magento(Adobe Commerce Cloud) logo
Image Source

Magento(Adobe Commerce) is an online platform that helps developers to create E-commerce websites. It was built in PHP. It can be used for B2B, B2C, and hybrid solutions and it supports many features other than the Shopping Cart including Email and Mobile Support, Shipping, and Marketplaces. 

Over 100,000 online stores have been developed using Magento(Adobe Commerce). Some of the leading brands using Magento are Nike and Samsung. The good thing with Magento(Adobe Commerce) is that it can be integrated with other platforms to extend its functionality. Through this integration, Magento(Adobe Commerce) users can get additional functionality to help them process customer orders and ship them smoothly. 

Magent(Adobe Commerce)o was acquired by Adobe in 2018 at a price of $1.68 million. This acquisition is expected to develop Magento(Adobe Commerce) to an enterprise market. If you want to start an E-commerce website, consider using Magento(Adobe Commerce). It is a professional platform and is totally free. 

In the next section, we will be discussing how to do a Magento 2 Facebook Store integration. 

Simplify Data Integration with Hevo’s No-code Data Pipeline

Hevo Data, a No-code Data Pipeline, helps load data from any Data Source such as Databases, SaaS applications, Cloud Storage, SDKs, and Streaming Services and simplifies the ETL process. It supports 100+ Data Sources including 40+ Free Sources. It is a 3-step process by just selecting the data source, providing valid credentials, and choosing the destination. 

Hevo loads the data onto the desired Data Warehouse/Destination like Google BigQuery, Snowflake, Amazon Redshift, Firebolt and enriches the data transforming it into an analysis-ready form without having to write a single line of code.

It’s a completely Automated Pipeline that offers data to be delivered in real-time without any loss from source to destination. Its fault-tolerant and scalable architecture ensure that the data is handled in a secure, consistent manner with zero data loss and supports different forms of data. The solutions provided are consistent and work with different BI tools as well.

Get Started with Hevo for Free

Check out why Hevo is the Best:

  • Secure: Hevo has a fault-tolerant architecture that ensures that the data is handled securely and consistently with zero data loss.
  • Schema Management: Hevo takes away the tedious task of schema management & automatically detects the schema of incoming data and maps it to the destination schema.
  • Minimal Learning: Hevo, with its simple and interactive UI, is extremely simple for new customers to work on and perform operations.
  • Hevo Is Built To Scale: As the number of sources and the volume of your data grows, Hevo scales horizontally, handling millions of records per minute with very little latency.
  • Incremental Data Load: Hevo allows the transfer of data that has been modified in real-time. This ensures efficient utilization of bandwidth on both ends.
  • Live Support: The Hevo team is available round the clock to extend exceptional support to its customers through chat, email, and support calls.
  • Live Monitoring: Hevo allows you to monitor the data flow and check where your data is at a particular point in time.
Sign up here for a 14-Day Free Trial!

Get Started with Magento 2 Facebook Store Integration

You can perform a Magento 2 Facebook Store integration using the Facebook Business Extension.

Benefits of the Magento 2 Facebook Store Integration

Below are some of the benefits that you will reap from Magento 2 Facebook Store integration:

  1. Reach the Right Audience

After the integration, you will be able to set up the Facebook Pixel and use it to find new customers. You will also be able to customize your Facebook Ads for people who are most likely to buy your products after visiting your E-commerce site. 

  1. Show the Right Products

You can connect your product catalogue to Facebook and use Dynamic Ads. This way you will reach users on Facebook with the products they previously had viewed on your store. 

  1. Measure your Ad Performance

After setting up the Facebook Pixel, you can use the Facebook Ads Reporting feature to know more about the sales and revenue generated by your Ads. Many online sellers have successfully used Facebook Pixel to run Dynamic Ads and track their performance. 

Magento 2 Facebook Store Integration: The Configuration 

In this section, we will be discussing how to install the Facebook Business Extension from a zip file on your Dev instance. It will be good for you to test whether the installation is successful before using the code in a production environment. Also, before starting the installation, ensure that your Magento cron job is running (More information on setting up and running the Magento cron job is available hereConfigure and run cron). 

After you have ensured all the requirements to be in place, start your Magento 2 Facebook Store integration using the steps given below:

Magento 2 Facebook Shop Extension Installation

Step 1: Log into your server instance.

Step 2: Run the following commands to change the directory to your Magento(Adobe Commerce) code subdirectory:

cd /var/www/Magento/app/code
cd /var/www/html/Magento/app/code

The command you run will depend on your server CentOS or Ubuntu. Your above path may be different depending on your installation. If you don’t find the path, look for it in /var/www/magento2/app/code or /var/www/html/magento2/app/code

Step 3: Download the file here. Move files into Magento2 folder app/code/Facebook/BusinessExtension. If you downloaded the zip file on GitHub, you need to create a directory app/code/Facebook/BusinessExtension. If you downloaded the zip from Facebook, those two folders are included.

Step 4: Ensure that you have the right read/write permissions on the Magento(Adobe Commerce) root directory. 

Step 5: Compress your Facebook subfolder, then move it to the code directory. Unzip it. 

Step 6: Run the following command to change the directory to the Magento(Adobe Commerce) root folder:

cd ../../

Step 7: Run the commands given below to install the Facebook Business Extension:

Install Facebook Business SDK for PHP

composer require facebook/php-business-sdk

The extension will use the above dependency. The progress message will show that php-business-sdk is being installed.

Run the following command to display the module status:

php bin/magento module:status

The Facebook_BusinessExtension will be in the list of the disabled modules. Run the following command to enable the module:

php bin/magento module:enable Facebook_BusinessExtension

Next, run the following command to upgrade the extension:

php bin/magento setup:upgrade

Deploy it by running the following command:

php bin/magento setup:static-content:deploy

Compile it by running the following command:

php bin/magento setup:di:compile

Run the following command to clean the cache:

php bin/magento cache:clean

Run the following command three times:

php bin/magento cron:run

If you are not the owner of the Magento files, run the following commands:

chmod -R 755 ./
chmod -R 777 pub/
chmod -R 777 var/
chmod -R 777 app/etc
chmod -R 777 generated

Verifying Magento 2 Facebook Shop Integration

Step 8: Once the installation runs successfully, log into your Magento(Adobe Commerce) Admin Panel. 

Step 9: Click the “Stores” icon from the main menu. You will see a section with the name “Facebook –> Setup”. 

Step 10: Choose “Setup” to open the Extension Installation page. 

Step 11: Choose “Get Started” to configure the Facebook Business Extension. 

If you have a Magento(Adobe Commerce) Marketplace account, you can also download the extension from Magento(Adobe Commerce) marketplace. Just log into your Magento(Adobe Commerce) account and click the “Marketplace” tab. Search for “Facebook Business Extension”. 

Facebook Business Extension: Magento 2 Facebook Shop Integration
Image Source: Magento Marketplace

You can then make an order for the extension. 

After the integration, you can enjoy the benefits of the Magento 2 Facebook Store integration. 


That brings us to the end of our Magento 2 Facebook Shop integration guide. We emphasised methods to easily execute Magento 2 Facebook Shop integration as well as the benefits of Magento 2 Facebook Shop integration with all the commands you’ll require for a successful installation.

For online sellers, Customer Management is a frequent problem, especially when they have a large amount of Customer Data. Managing everything becomes a challenging task. Everything looks to be too big to handle, whether it’s building Personalised Marketing Campaigns or generating Customer Insights from collected data.

But worry not.

Hevo Data with its strong integration with 100+ Sources & BI tools such as  Magento allows you to not only export data from Sources & load data in the Destinations like Data Warehouses but also transform & enrich your data & make it analysis-ready so that you can focus only on your key Business Needs and perform Insightful Analysis using BI Tools. 

Visit our Website to Explore Hevo

Want to take Hevo for a spin? Sign Up here for a 14-day free trial and experience the feature-rich Hevo suite first hand.

We hope that you found this tutorial helpful. Let us know in the comments your opinions or experiences of using Magento(Adobe Commerce) or about Magento 2 Facebook Shop integration.

No-code Data Pipeline for Magento