step by step guide to configure facebook as an OAuth Server

Step by Step guide to configure Facebook as an OAuth Server

  1. Login/ Signup in Facebook developer console at https://developers.facebook.com/


  2. Go to My apps -> Add New App.


  3. Enter the Display Name and Contact Email for your app under the Display Name and Contact Email fields respectively and then click on Create App ID button to save your settings and create an App Id for your app.


  4. Select Facebook Login by clicking on the set up button .


  5. Select Facebook Login -> Settings under Products option in the navigation bar .


  6. Under Client OAuth Settings, enter the Callback/Redirect URL (from your miniOrange Oauth Client plugin) in the Valid OAuth Redirect URIs field. Click on the Save button to save your configurations.
    Please Note: It is mandatory while configuring Facebook as an OAuth Server that your Callback/Redirect URI should be https and not http.


  7. Go to Settings -> Basic to view your App Id and App Secret Refer to the image below).


  8. Enter your Privacy Policy URL in the Privacy Policy URL field and choose a category from the dropdown in the Category field. Click on the Save Changes button to save your configurations.
  9. Copy your App ID and your App Secret and save it in your miniOrange OAuth Client Plugin/Module. (under client id and client secret field respectively).
  10. Change you app status from In Development to Live by clicking on OFF as shown in the image below. Then, click on confirm to confirm your change of status.



  11. You have successfully completed your Facebook OAuth Server side configurations.

  12. You can download OAuth Client plugin using the following link.
  13. WordPress OAuth Login ( OAuth Client )

     
     
    Facebook Endpoints and Scope:

    Client ID:  from the step 9 above
    Client Secret:  from the step 9 above
    Scope:  public_profile email
    Authorize Endpoint: https://www.facebook.com/dialog/oauth
    Access Token Endpoint: https://graph.facebook.com/v2.8/oauth/access_token
    Get User Info Endpoint: https://graph.facebook.com/me/?fields=id,name,email,age_range,first_name,gender,last_name,link

    If you are facing any difficulty please mail us on info@miniorange.com.