Having 2.9 billion monthly active users in the world, Facebook is still the most popular social media platform in 2022. Enabling Facebook login on your Moodle site can encourage new users to sign up to your Moodle courses. In this tutorial, we will show you all the steps you need to take to offer Facebook login on your Moodle 4.0+ site.
You or your business needs to have an existing Facebook account.
Go to Facebook (Meta) for Developers (
Click the “Create App” button and you will be taken to an app creation page where you can enter the required information. Because you’re adding Facebook login to your site you can select “Consumer” as the app type.
Now you have created an app, on the app configuration page you can add “Facebook Login” to your app.
Select the “Web” option in the next step and enter your Moodle site’s URL and save. You can ignore fields 2 to 5 in the form as Moodle handles them automatically.
Click “Settings” under the “Facebook Login” option on the left-hand side menu. Configure the Client OAuth settings section as shown in the figure below and save changes.
You need to enter the “Valid OAuth Redirect URIs” following a specific format –
Click the “Basic” option under the “Settings” menu as shown in the figure below and enter all the required information. The App ID and App secret fields are auto generated and you will need them when you configure your Moodle site later.
Click the “Permissions and Features” option under the “App Review” menu as shown in the figure below. Find
Change your app’s mode from “Development” to “Live” by clicking the toggle in the top menu bar.
Log in to your Moodle site as an administrator. Go to Site
administration > Server > OAuth 2 services.
Click the “Facebook” button and you will be taken to the configuration page where you need to enter your Facebook app’s “Client ID” and “Client secret”. You can get them from your Facebook App’s settings page (see Step 5).
Save changes and your site is ready to let users log in using their Facebook accounts.