Tech Blog

Defining Facebook App for social login in campusM

campusM supports login using social network details. See Social Login for more details. Following are instructions for defining a Facebook app to allow login to campusM using Facebook.
Note that in order to define the Facebook app, you need an active Facebook account. This can be a personal account or a “general” account for the institution. We recommend to use a general account.
    1. Connect to Facebook Developers site with the institution’s Facebook account.
    2. Click on “My Apps” in the upper right and then “Create App”.
    3. Fill in the Display Name field. Note that you cannot use “Facebook” in the name:

Click “Create App ID”.

    1. On the next screen, add the “Facebook Login” product:
    2. On the next screen, select “Web” platform:

  1. Enter your site URL and press “Continue”. Click “next” to skip “Set Up the Facebook SDK for Javascript”, “Check Login Status”, “Add the Facebook Login Button”, “Next Steps”.
  2. Now click on “Facebook login” > “Settings” in the left menu
  3. Define the Redirect URIs
    Put the institution’s campusM domain with “/cmauth/oauth/callback” suffix. For example: https://uni.campusm.com/cmauth/oauth/callback.
    Note that it is possible to configure here several URIs. This means that you can define here a sandbox URI, and later on add the production URI.
  4. Make sure that “Use Strict Mode” is on.
  5. Leave all the other settings as they are and click “Save Changes”.
  6. On the upper bar, switch mode from “development” to “live”:
  7. Go back to “Settings”, and copy the App ID and secret. They should be defined in campusM in the “Social Login” integration profile. See campusM OLH for more details.

Leave a Reply