Follow these steps to configure Facebook for Social Feeds.
Your Facebook App does not require review and approval by Facebook to use Social Feeds.
​Step 1. Admin Access to Facebook Page#
In order to fetch posts from a Facebook Page, you must be an Admin for the page you want to access.
- Go to the Meta for Developers page.
- Click the Create App button.
- Select Other and click the Next button.
- Select Business and click the Next button.
- Fill in the App Name and App Contact Email. The Business Portfolio is optional.
- Once created, in the left-hand sidebar, click the Add Product button.
- Under Facebook Login for Business click the Set Up button.
- A warning banner will appear Are you looking for other options? to switch to Facebook Login. Click the Switch to Facebook Login link.
- Select Certain platforms aren’t available with this product (or any other applicable option) in the modal window and click the Switch to Facebook Login button.
- Navigate to the Facebook Login section in the left-hand sidebar, click Settings.
- For the Valid OAuth Redirect URIs setting, enter the value from the Redirect URI field in Social Feeds.
- Click the Save Changes button.
- Navigate to App Settings → Basic item in the left-hand sidebar.
- Enter your domain name to the App Domains field.
- Click the Save Changes button.
- Copy the App ID from Facebook and paste in the Client ID field in Social Feeds.
- Copy the App Secret from Facebook and paste in the Client Secret field in Social Feeds.
- Save the Social Feeds source, ready to connect.
- In the Social Feeds source settings, click the Connect button and login to Facebook.
- Ensure you pick the Facebook Page you have admin access to.
- Select a Facebook Page that you'd like connected to.
- Click the Save button for the source.
If you are connecting to a Facebook Page connected to a business, you'll need to supply additional scopes in your configuration.
<?php
return [
'*' => [
// ...
'sources' => [
'facebook' => [
// ...
'scopes' => [
'business_management',
],
],
],
]
];
Facebook provides the following types of content as posts.
- Page Feed (Posts from your Facebook page)
- Photos (Photos from your Facebook Photos page)
- Videos (Videos from your Facebook Videos page)
- Events (Events from your Facebook Events page)