Facebook Login for Business using Joomla
For connection to the Facebook API, first you need to create a Facebook app.
Step 1: Create Facebook App
Visit Facebook Developers page. Click on Create App button.
1.1 App details
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.
1.2 Use cases
Choose "Manage everything on your page". (Under Content Management)
1.3 Business
Connect a business portfolio to your app.
After filling in all these details, click "Create app" button.
Step 2: App settings
Navigate to the App settings > Basic from the left menu, enter the following information:
- App domainsÂ
- Privacy Policy URL
Copy the App ID and App secret. You need to enter these details at the back-end while creating a new channel.
Step 3: Publish your app
From the left menu, navigate to Publish. Click "Publish" button to make the app live.
Step 4: Facebook Login for Business
From the left menu, navigate to Facebook Login for Business > Settings.
Valid OAuth Redirect URIs
In the Valid OAuth Redirect URIs, enter the following Url:
https://example.com/administrator/index.php?option=com_tftools&task=channel.facebook&id=<id>
Replace example.com with your domain name and <id> with the channel id.
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, along with the App Id and App Secret.
Step 5: Connect to Facebook
From the Channels dashboard, click "View Channel" and then "Connect to Facebook" button.
You will be redirected to Facebook for login and permissions.