Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: OAuth 2 Facebook service.

OAuth 2 Facebook service: Difference between revisions

From MoodleDocs
mNo edit summary
No edit summary
Line 1: Line 1:
{{OAuth2}}
{{OAuth2}}
Please note! Facebook developer UI is constantly changing, and actually it has changed a little bit, so we need to update the screen captures, but the process is still the same. so follow it carefully.
=== Setup App in Facebook ===
=== Setup App in Facebook ===



Revision as of 11:34, 26 May 2017

Please note! Facebook developer UI is constantly changing, and actually it has changed a little bit, so we need to update the screen captures, but the process is still the same. so follow it carefully.

Setup App in Facebook

To setup an OAuth 2 client with Facebook, first we need to log in to the Facebook for Developers Apps page and create a new app.

New App

Enter the name for the new App and choose a category (Education?).

Name it

Go to the app basic settings and set the app icon, and the URLs to your privacy policy and terms of service.

Basic settings

Add the "Facebook Login" product to the app.

Add a product

Configure the OAuth settings. Set the callback URL to "your site url + /admin/oauth2callback.php". If your moodle site is available at https://lemon.edu/ then the callback URL should be set to https://lemon.edu/admin/oauth2callback.php. Enable the Web OAuth Login but for best security disable all other types of login.

OAuth settings

Go to App Review and make your App public.

Make it public

Finally go to the basic settings and get the App ID and App secret and enter them in Moodle as the Client ID and Client Secret.