# How to Autopost from Joomla! to Facebook
- Updated on 2020-10-01 to include the latest changes introduced with the release of the API 8.
In this tutorial, we are going to show how you can autopost from Joomla! to Facebook.
# How to Autopost from Joomla! to Facebook
- AutoTweetNG Free, Pro or Joocial 8.36 or superior
- A Facebook account
- System requirements: Joomla 3.4 or superior, PHP 7.2 or superior y MySQL 5.7 or superior (recommended)
Once you have checked the prerequisites, proceed with step 1.
# STEP 1: Download and install AutoTweetNG/ Joocial
Download the extension from Extly's Download Area, unzip and install AutoTweetNG/ Joocial in Joomla! backend with the standard procedure.
About AutoTweetNG/ Joocial updates: Install the update with the same procedure.
Once you have proceeded with the installation:
-AutoTweetNG component has been installed -System plugin-AutotweetAutomator has been installed and enabled, to process new content and posts every 3 minutes -System plugin - AutotweetContent has been installed and enabled to publish Joomla! content.
Remember to assign your Download ID to enable all features.
# STEP 2: Create an app
Login at https://developers.facebook.com/ with your Facebook username and password. Go to My Apps, and click on Create App.
Select the option Manage Business Integration
Complete the App Display Name, App Contact Email and the App Purpose. Iy you already have set your Business Manager accout (recommended) select it and click on Create App ID.
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
Go to Add Platform, select Website and enter your website URL, save changes.
# STEP 2.1: Test App
We recommend creating the Test App version of your App to practice and optimize your publishing process. The activity on Facebook generated with a Test App will only be shown to the App team.
Go to your apps, select Create a Test App. This Test App will be a clone of your app, but with a different App ID and App Secret. You have to use these Keys to create and test the channel.
# STEP 2.2: Permissions and Features
With the release of API 8, the App Review process has been simplified, introducing a new model of 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 not necessary to submit the app for review.
# STEP 3: Create and authorize a social channel
Go to AutoTweetNG/ Joocial Control panel, there select Channels tab to create a new channel.
On Channel Tab, click on New, select the Channel Type and complete the Channel Data, App ID and App Secret (Test App).
Go to Authorization tab to authorize the app in the Facebook account. Click on "Step 1: Authorize"
Facebook dialog may differ according to 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 "Step 2: Validate" The User ID will be filled.
Go to Channel Selection tab and click on "Step 3: Validate Channel" and save.
AutoTweetNG/ Joocial 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 4: 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.
# STEP 5: Setup your Facebook account
It is an advised practice to declare the ownership of Pages, the associated domains, users, roles and apps. The recommended procedure is to do it in the business manager, https://business.facebook.com/.
Login at https://business.facebook.com/ with your Facebook account. Create a business account.
# STEP 5.1: Domain verification
Once you have created your account, go to Business Settings > Brand Safety , add your domain and proceed to the Domain Verification.
Once the domain is verified, got to Connected Assets and associate your domain/s with your page/s.
# STEP 5.2: User, Pages and Apps
Go to Users and add the people that work with your page/s.
Go to Accounts to add the user/s to the page/s.
Go to Accounts to add the app and the user/s.
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.