Note: This document is written for solution with version below than 5.0.0. For version 5.0.0 or later please read this document.

Facebook SignIn

All the works are done in STS and you just need to create a Facebook App and get your App ID and Secret ID.

Go to the Facebook Developers site and create a new App. There are many documents, but it can be done by simply going to Apps menu.

Find Site URL in your created Facebook App and set it to your own STS url. This URL must point to default.aspx page of your STS site and does not relate to your SharePoint sites.Site URL example: http://authtest.shetabtech.com/default.aspx (it should be pointed to default.aspx not signin.aspx).

Open "web.config" of your STS site with notepad and find facebook tag, then replace the appId and appSecretwith your created Facebook App.

Finish.

Microsoft SignIn

All the works are done in STS and you just need to create a Microsoft App and get your Client ID and Client Secret.

Find Root Domain in your created Microsoft App and set it to your STS Root Domain. This URL must point to your STS domain and does not relate to your SharePoint sites.Root Domain Example:authtest.shetabtech.com

Find Redirect URLs in your created Microsoft App and set it to your own STS url. This URL must point to default.aspx page of your STS site and does not relate to your SharePoint sites.Redirect URLs Example:http://authtest.shetabtech.com/default.aspx (it should be pointed to default.aspx not signin.aspx).

Open "web.config" of your STS site with notepad and find microsoft tag, then replace the appId and appSecretwith your created Microsoft App.

Finish.

Google SignIn

All the works are done in STS and you just need to create a Google Project and get your Client ID and Client Secret. .

In the Project ID field, optionally type in a project ID for your project or use the one that the console has created for you. This ID must be unique world-wide.

Click the Create button and wait for the project to be created.

Click on the new project name in the list to start editing the project.

In the left sidebar, select the APIs item below "APIs & auth". A list of Google web services appears.

Find the Google+ API service and set its status to ON—notice that this action moves the service to the top of the list. You can turn off the Google Cloud services.

In the sidebar under "APIs & auth", select Consent screen.

Choose an Email Address and specify a Product Name.

In the sidebar under "APIs & auth", select Credentials.

Click Create a new Client ID — a dialog box appears.
Register the origins from which your app is allowed to access the Google APIs, as follows. An origin is a unique combination of protocol, hostname, and port.

In the Application type section of the dialog, select Web application.

In the Authorized JavaScript origins field, enter blank.

In the Authorized redirect URI field, set it to your own STS url. This URL must point to default.aspx page of your STS site and does not relate to your SharePoint sites.Redirect URLs Example:http://authtest.shetabtech.com/default.aspx (it should be pointed to default.aspx not signin.aspx).

Click the Create Client ID button.

In the resulting Client ID for web application section, copy the Client ID and Client secret that your app will need to use to access the APIs.