A Facebook login lets visitors sign in with an account they already have, instead of creating another password.

The Facebook option of the WP Login & Register widget from The Plus Addons for Elementor adds the button once you connect a Facebook app.

To check the complete feature overview documentation of The Plus Addons for Elementor WP Login & Register widget, click here.

Requirement – This widget is a part of The Plus Addons for Elementor, make sure it’s installed & activated to enjoy all its powers.

Before You Start

  • Edition: Pro — the WP Login & Register widget is only part of The Plus Addons for Elementor Pro. The free plugin lists it as a locked Pro widget and does not add it to Elementor.
  • Widget to enable: WP Login & Register, switched on under The Plus Addons > Widgets.
  • Anyone can register ticked in Settings > General. The Facebook login is refused while it is off, even for existing members.
  • A Facebook developer account and an app with the Facebook Login product.

Step 1: Create a Facebook App

These screens belong to Meta for Developers and change often, so the labels you see may differ.

  1. Log in to Facebook for Developers. If you have no developer account yet, click Get Started.
The get started button on meta for developers
  1. Complete the developer account registration.
Registering a meta developer account
  1. On the Apps page, click Create App.
The create app button on the meta apps page
  1. Choose the app type and continue.
Choosing the app type for the new facebook app
  1. Enter the app name and contact email, then create the app.
Entering the app name and contact email
  1. Open Settings > Basic in the app’s sidebar.
The settings > basic page of the facebook app
  1. Copy the App ID and, after clicking Show, the App Secret.
The app id and app secret fields of the facebook app
  1. Add a Privacy Policy URL, choose a category and save the changes.
Adding a privacy policy url and category to the facebook app
  1. Switch the app to Live mode.
Switching the facebook app to live mode
  1. Add the Facebook Login product to the app.
Setting up the facebook login product
  1. In Facebook Login > Settings, add the address of the page with your login form.
The facebook login settings with the redirect uri field
  1. Turn on Login with JavaScript SDK, add your domain to the allowed domains and save.
Allowing your domain for the javascript sdk in facebook login settings

Step 2: Save the App Keys in The Plus Addons

  1. Go to The Plus Addons > Settings and find Login with Facebook in the API group.
  2. Click its settings icon, paste the App ID and the App Secret ID, and click Save.
Saving the facebook app id and app secret id in the plus addons settings

Step 3: Show the Button in the Widget

  1. Add the WP Login & Register widget with any Type except Forgot Password.
  2. Open Social Login/Register and turn on Facebook.
  3. Pick a Layout (Layout 1 or Layout 2), set the Alignment, and optionally a Redirect URL for after the login. Then publish.
Facebook turned on in the social login/register section with the layout and alignment options
A login form with the facebook login button on the front end

How It Behaves

  • According to the plugin code, the button uses Facebook’s JavaScript SDK and asks for the visitor’s email.
  • The site checks the login with your App ID and App Secret, then logs in the member with the same email, or creates a new account.
  • Hide Form (for the Login or Register type with the Standard Form layout) leaves only the social buttons.

Limitations

  • We could not test a Facebook login end to end on our test site, so check the flow on your live site with a test account before relying on it.
  • While Anyone can register is off, the plugin refuses every Facebook login, including members who already have an account.
  • According to the plugin code, the login is only sent to your site when Facebook shares the visitor’s email address; without it, clicking the button does nothing.
  • The widget is part of The Plus Addons for Elementor Pro only.

Troubleshooting

The button does not appear

Check that the App ID is saved in Login with Facebook, that the app is Live, and that your domain is allowed for the JavaScript SDK.

Login fails with a registration message

Tick Anyone can register in Settings > General.