# 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
On Joomla 4, the System - HTTP Headers plugin secures the default browser configuration with a high security/privacy standard. In particular, the "Cross-Origin-Opener-Policy" restricts the Facebook Login. Disable the "Cross-Origin-Opener-Policy" setting while you authorize the channel.
Once you have checked the prerequisites, proceed with step 1.
Images in Link Shares
- The minimum allowed image dimension is 200 x 200 pixels.
- The size of the image file must not exceed 8 MB.
- Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images.
- If your image is smaller than 600 x 315 px, it will still display in the link page post, but the size will be much smaller.
- We've also re-designed link page posts so that the aspect ratio for images is the same across desktop and mobile News Feed. Try to keep your images as close to 1.91:1 aspect ratio as possible to display the full image in News Feed without any cropping.
- Our crawler only accepts gzip and deflate encodings, so make sure your server uses the right encoding.
For more information: https://developers.facebook.com/docs/sharing/webmasters/images (opens new window)
# 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 3.2: Facebook Login
If the App is on API v12 or superior, Facebook has a new option to configure the Facebook Login.
- Click on Facebook Login/ Settings.
# 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.