# How to Autopost from Joomla! to Facebook
In this tutorial, we will show how you can auto post from Joomla! to Facebook.
- Perfect Publisher 9 or superior
- A Facebook page
- System requirements: Joomla! 3.9 or superior, PHP 7.4 or superior y MySQL 5.7 or superior (recommended)
Once you have checked the prerequisites, proceed with step 1.
# STEP 1: Download and install Perfect Publisher
Download the extension from Extly's Download Area (opens new window), unzip and install Perfect Publisher in Joomla! backend with the standard procedure.
About Perfect Publisher updates: Install the update with the same procedure.
Once you have proceeded with the installation:
-Perfect Publisher component has been installed -System plugin - Perfect Publisher Automator has been installed and enabled to process new content and posts every 3 minutes -System plugin - Perfect Publisher for Joomla! Content (Articles) has been installed and enabled to publish Joomla! content.
Remember to assign your Download ID to enable all features.
# STEP 2: Set up your Facebook Business account
It is an advised practice to declare the ownership of Pages, the associated domains, users, roles, and apps in the Facebook Business Manager.
If you are a Facebook page administrator, you can access the Facebook Business Suite (opens new window). To declare the associated domains, pages, and apps, you need a Business Manager account (opens new window).
Login at https://business.facebook.com/ (opens new window) with your Facebook account.
Go to More tools, Business Settings to create your business account:
# STEP 2.1: Domain verification
Once you have created your account, go to Settings > Business Settings > Brand Safety, add your domain, and proceed to the Domain Verification (opens new window) using one of the available methods.
# STEP 2.2: Connect your Assets
Once the domain is verified, go to Connected Assets and associate your domain/s with your page/s.
If you are the owner of the page with your personal account, you have to transfer the page to your Business Account:
In this way, your Business is the owner of the page, and you are the admin:
# STEP 2.3: User, Pages and Apps
Go to Users and add the people that work with your page/s.
Go to Accounts to add the app and the user/s. If you have not created the app yet, you can add it later or select the Business when you create the app.
Be sure to correctly associate your Pages and People, check if the users are correctly added to the Business Manager/Business Settings/Accounts/Pages/People.
# STEP 3: Create an app
Login at https://developers.facebook.com/ (opens new window) with your Facebook username and password. Go to My Apps, and click on Create app.
Select the option Business
Complete the App Display Name, App Contact Email and the App Purpose. If you already have set your Business Manager account (recommended), select it and click on Create app.
In the App Dashboard, go to Settings/Basic to find your App ID and App Secret. Remember to complete the mandatory information:
- Upload App Icon
- Choose a category
Go to Add Platform, select Website and enter your website URL, save changes.
# STEP 3.1: Permissions and Features
With the release of API 8, the App Review process has been simplified, introducing a new access level for Apps (BAUPA, Business Asset User Profile Access). By default, all new apps created with API 8 are granted Standard Access for the permissions required to publish to a page, so it is unnecessary to submit the app for review.
To publish to Facebook, you need to have Standard Access for Pages manage posts and Pages read engagement. To find your app permissions, go to App Review, Permissions and Features:
# STEP 4: Create and authorize a social channel
Go to the Perfect Publisher Control panel, select the Channels tab to create a new channel.
On Channel Tab, click on New, select the Channel Type and complete the Channel Data:
Go to Channel Details:
- Facebook Details: Complete the App ID and App Secret.
- Authorization: Click on the Facebook Login button and follow the steps.
The Facebook dialog may differ according to the Facebook API version
The authorization opens a dialog to Facebook. If the dialog is not shown, double-check to confirm if your browser is blocking the dialog. In Chrome, the pop-up blocker could be preventing the opening of the dialog. In Firefox, the function activity tracking could be blocking the task.
After the authorization, the Facebook application provides the Access Token to validate and fill the User-ID.
Click on "Validate". The User ID will be filled.
- Channel Selection: Select the Facebook page. Click on Validate Channel. Save and Close.
Perfect Publisher is ready to publish!
A new authorization Access Token has been granted.
A new Facebook Channel has been created.
By default, all new articles are going to be published on Facebook.
# STEP 5: Create a test article
- Create an article
- Check the Request list
- Wait 3 minutes, visit the front page
- Check the Posts list
- Check Facebook Page.