How can I create Facebook application?

The Facebook Fetcher add-on needs a Facebook app of your own: Facebook only answers requests made by a registered application. You create it once at developers.facebook.com/apps, and then use its ID and secret in WPeMatico.

Note: Meta changes these screens from time to time, so yours may look a bit different. Your site must use HTTPS.

1. Create the App
In Meta for Developers.

Go to developers.facebook.com/apps and click Create App. The wizard has five steps.

App details. Type a name for the app and your contact email, and click Next.

App details step when creating an app in meta for developers

Use cases. Choose the one that matches the app type you will select in WPeMatico:

  • To fetch the Facebook pages you manage (app type Pages (Business) in WPeMatico), choose Manage everything on your Page. You find it under Content management.
  • To fetch the posts of your own profile (app type Profile (Consumer)), choose Authenticate and request data from users with Facebook Login.

Manage everything on your page use case selected when creating a meta app

Note: Meta doesn’t allow both use cases in the same app. If you need pages and your profile, create one app for each.

Business. Connect your business portfolio, or choose I don’t want to connect a business portfolio yet. You can connect it later.

Business portfolio step when creating a meta app

Requirements and Overview. Check the summary and click Create app.

Overview step with the create app button in meta for developers

2. Register the Redirect URI
So WPeMatico can authenticate the app.

  1. Copy the redirect URI that WPeMatico shows in WPeMatico β†’ Settings β†’ Facebook Fetcher. It looks like https://example.com/wp-admin/admin.php?action=fbf_redirect&auth=1.
  2. In your app, open the login settings:
    • For a Pages app: Facebook Login for Business β†’ Settings.
    • For a Profile app: Use cases, click Customize in the Facebook Login use case and open Settings.
  3. Under Client OAuth settings, check that Client OAuth login and Web OAuth login are on, paste the URI in Valid OAuth Redirect URIs and click Save Changes.

Valid oauth redirect uris in the facebook login for business settings with the wpematico redirect uri

3. Copy the App ID and Secret
In App settings β†’ Basic.

Go to App settings β†’ Basic. There you find the App ID and the App secret: click Show to see the secret. Fill in the Privacy policy URL, the Terms of Service URL, the User data deletion and the Category too, and save.

App id and app secret in the basic settings of a meta app

Now enter them in WPeMatico, choose the same app type and authenticate the app, as explained in Setup Facebook Fetcher.

4. Authenticate
From WPeMatico.

When you click Authenticate in WPeMatico, Facebook opens a window: continue with your account, choose the pages and accept the permissions.

Continue with your facebook account

Choose the pages for the app

Permissions requested by the app

Review the permissions of the app

Facebook app connected

Click OK to finish. Your pages are now available in the campaigns.

Public Pages You Don’t Manage
Only after Facebook approves the app.

While the app is in development, it reads the pages you manage or your own profile. To fetch public pages of other people, the app needs the Page Public Content Access feature, and Facebook must approve it in App Review: you describe how you use it and how a reviewer can test it, and then publish the app. The approval can take from one week to several months.