GD Bloggers

This is the blog site for Microsoft Global Delivery Communities focused in sharing the technical knowledge about devices, apps and cloud.
Follow Us On Twitter! Subscribe To Our Blog! Contact Us

Use Facebook as an Identity Provider for SharePoint 2013 – Part 1

Use Facebook as an Identity Provider for SharePoint 2013 – Part 1

  • Comments 4
  • Likes


This blog will describe in details how to use Facebook as an identity provider to login into your SharePoint application.

There are many ways to integrate you SharePoint application with Facebook; so you can start developing authentication and authorization mechanisms for your SharePoint application, OR you can start using Windows Azure Access Control Service (ACS) that provides an easy way of authenticating users who need to access your SharePoint application.

How does ACS work with SharePoint and Facebook?


  1. User requests to be authenticated against a relying party (In our case, it is a SharePoint web application), and then to choose from a dropdown list the required Identity Provider for authentication.
  2. The user will be redirected to the chosen identity provider (which is Facebook in our case).
  3. The user enter his/her username and password.
  4. The Facebook will generate and send a security token to the user that hold claims and other properties.
  5. Facebook will redirect the user to the ACS, and the user will send the generated security token to the ACS.
  6. ACS validate the security token, and generate a new security token.
  7. The ACS redirect the user to the SharePoint web application and send the new security token to the user.
  8. The user will send the security token to the SharePoint web application.
  9. The SharePoint application will validate the security token, and then redirect the user to the required page.


Configuration Steps:

PS: I will assume you have ONLY a configured SharePoint machine and connected to the internet only.

First of all, let us create a windows azure account:


  • click on Sign up for a free trial.


  • Choose your county and click the next arrow


  • Enter you mobile number, and click on send text message, wait 5 minutes, and you will receive a verification code.


  • Enter you verification code and click on verify code, then click the next arrow.


  • Enter your credit card and your billing information; (You will not be charged for this, remember the first 90 days are FREE).



  • Click Next.
  • Click on Portal on the top right of the page.


  • Click on ACTIVE DIRECTORY on the left navigation then click on ACCESS CONTROL NAMESPACES.


  • Fill the namespace (I name it MySharePointLogin; you can choose your own namespace) and click create.


  • The URL of your Access Control Namespace will be like this:
    • (Mine)
    • (Your namespace title)




  • Now go to Facebook Developer:
  • Sign in using your Facebook username and password.
  • Click on App from the top navigation


  • Click Create New App


  • Fill the required information and click Continue


  • Fill the required Captcha
  • Fill the Access Control Namespace URL in the Site URL, and Click Save.
  • PS You will require the App ID and App Secret in the next phase.



Go to Part 2

  • What are the steps if I want to make the identity provider to be another ASP.NET web application instead of facebook

  • Hi,
    Is it possible to have your one application which acts like Facebook in your pic showing authentication steps? I mean can I have a normal Asp.NET applciation and inside it showing data which comes from SharePoint without any need to login into the SharePoint? Users in my application login once into the application and want to be able to show data from SharePoint.

  • Hi There,

    Thank you very much for this wonderful article. I did all the steps exactly as it mentioned. But when I am browsing my site. I am getting "This page can't be displayed" error. My site URL I tried with Root level site as well. Please suggest ASAP.

    Thank you,

  • Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    Latest version of Showbox App download for all android smart phones and tablets. - It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    Showbox for PC articles:
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment it doesn't charge cash for watching films and recordings. Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android. The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on 'Obscure sources'.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment