How To Configure Azure Websites Authentication/ Authorization

You can see my previous articles for creating Azure Website:


  • Facebook Developer Account
  • Azure account

Now let's get started with the following steps:

Create a Facebook API Key

Sign in to the online Facebook Developer Account.

After entering your account Click My Apps > Add a New App > Website > Skip and Create App ID.

In Display Name, enter a unique name for your app, Select a Category for your app, then click Create App ID.


After some time you will get a developer dashboard for your new Facebook app and get your own Facebook API Key.


Configure Azure Websites Authentication/Authorization

Sign in to the online Microsoft Azure Portal. Then in your web app's blade in the Portal, click Settings > Authentication/Authorization, and make sure that App Service Authentication is On.

Click Facebook Option, Copy from Facebook Developer Account and paste in the App ID and App Secret values which you obtained previously then click OK.
Then we set Action to take when request is not authenticated to Facebook for access to your site to only users authenticated by Facebook.
Now you will get and be ready to use Facebook for authentication in your app.
Read more articles on Azure: