Skip to main content
With Facebook login on, the login and registration pages show a Facebook button. You create an app in Meta for Developers, turn on Facebook Login for it, then paste the App ID and App secret into Auth Settings. No .env changes are needed. MagicPost asks Facebook for the email permission along with the basic profile. Facebook must return an email address, otherwise the sign-in is refused. A person whose Facebook account has no email, or who declines the email permission, cannot sign in.
This is sign-in for your own users. To publish to a Facebook Page you use a Meta app connected under Admin → Publishing → Platforms. See Facebook Pages.

Before you start

  • You can sign in to the MagicPost admin panel.
  • You have a Facebook account that can use Meta for Developers.
  • Your site runs on its public https address.

Step 1. Copy the Callback URL

1

Open Auth Settings

Go to Admin → Backend Settings → Auth Settings and scroll to the Facebook section.
2

Copy the Callback URL

Copy the value of the read-only Callback URL field. It looks like https://your-domain.com/auth/facebook/callback. You paste it into Meta next.

Step 2. Create the Facebook app

1

Create the app

Go to developers.facebook.com, open My Apps and click Create app. Enter an app name and a contact email. When asked what you want to do, choose the use case Authenticate and request data from users with Facebook Login. If Meta asks for a business portfolio, select one or continue without it, then create the app.
2

Add the email permission

In the app dashboard open Use cases, then click Customize on the Facebook Login use case. Confirm that public_profile is present and add email.
3

Add the redirect address

Open Use cases → Facebook Login → Settings. Under Valid OAuth Redirect URIs, paste the Callback URL from Step 1 and save.
4

Copy the credentials

Open App settings → Basic. Copy the App ID. Next to App secret, click Show and copy it.
5

Switch the app to Live

While the app is in Development mode, only people who have a role on the app can sign in. Switch it to Live with the mode toggle in the dashboard header so everyone can. Meta may ask you to complete further details first.

Step 3. Configure MagicPost

1

Turn on the master switch

On Admin → Backend Settings → Auth Settings, switch on Login via Social (oAuth). It saves as soon as you toggle it.
2

Enable Facebook and fill in the credentials

In the Facebook section, switch on Enable Facebook Login and fill in:
  • Facebook API Key: the App ID.
  • Facebook API Secret Key: the App secret.
  • Facebook Redirect URL: the same address as Callback URL.
3

Save

Click Save. The toast reads Settings were saved successfully.

Test it

  1. Open your site’s login page in a private browser window.
  2. Click Facebook under or continue with.
  3. Approve the Facebook dialog and allow the email permission.
  4. You land on the dashboard. The registration page offers the same button under or sign up with.

Troubleshooting