Facebook Login for Business using Joomla
For connection to the Facebook API, first you need to create a Facebook app.
Step 1: Facebook App
Visit Facebook Developers page. Click on Create App button.
Select the business portfolio to connect to this app. Click "Next".
Next, you need to select an app type. Select "Other" and then "Business" type app. Click Next button.
App name: This name will show on your My Apps page. You can change the name later in Settings. You can put the name of your site here.
App contact email: This is the email Facebook will use to contact you whenever there is an important reason.
Business Portfolio: Connect a business portfolio to your app.
After filling in these details, click "Create app" button.
Step 2: App settings
Navigate to the App settings -> Basic from the left menu, enter the Privacy Policy URL.
Then, from the top bar switch the App mode to Live.
Copy the App ID and App secret. These are the Client ID and Client secret you need to enter at the back-end while creating a new channel.
Under the Connection tab, you can check the App Details.
Step 3: Add products to your app
In the Facebook App, add Product: Facebook Login for Business. Click Set up to add this product to your App.
Configurations
From the Facebook Login for Business, navigate to the Configurations. Click "Create Configuration".
- Name: Enter name of configuration. For example, Facebook Page or Facebook Ads
- Login variation: Select General.
- Access token: Choose User access token.
- Permissions: Select the required permissions.
Click "Create" button. You will get a configuration ID. Copy this and enter it under the Options Tab.
Valid OAuth Redirect URIs
From the Facebook Login for Business, navigate to the Settings. In the Valid OAuth Redirect URIs, enter the following Url:
https://example.com/administrator/index.php?option=com_tftools&task=channel.facebook
Replace example.com with your domain name.
Step 4: Connect to Facebook
From the Connection tab, click "Connect to Facebook" button. You will be redirected to Facebook for login and permissions.