These days there are thousands and thousands of people that very frequently use facebook which has grow to be the best mode for connecting with any of your friends. It is not required that you could possibly solely be connected with any of your existing friends but in addition you could very effectively join with any others whom you’ve gotten met by way of this social networking website and have related taste and so on. There are a number of choices for you to develop into a fan for others and there is likely to be so many the reason why you want to be a fan for that individual and similarly there is perhaps so many people who may register as your fan. So it has change into very common that individuals who do have followers have began designing specialised fan web page of their fb account in order to attach with their fans in a specialized manner. Even though this selection is available with facebook not many individuals know to set up the same. For these individuals who would like to set up their fan web page you may very nicely make use of the How to you make a Fanpage on Facebook – Video Tutorial which could provide you with the step by step process to setup the same. There are such a lot of sites where you’ll find the How to you make a Fanpage on Facebook – Video Tutorial and hence you may very well make use of the same. Not only this tutorial but in addition you could very properly find varied tutorials on New Facebook look – Changes on Facebook Pages and many different video tutorials which you could make use of, with a purpose to have a personalized fb look and feel for your account. When there are alternatives that are provided by facebook and also the available tutorials that can assist you in establishing the identical why not customise your fb account as you like.
Text version of the video
All ASP .NET Web API Text Articles and Slides
All ASP .NET Web API Videos
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic
In this video we will discuss using Facebook authentication with ASP.NET Web API.
When the user clicks “Login with Facebook” button, he will be redirected to Facebook login page. The user will then provide his Facebook credentials. Once the login is successful, the user will be redirected to our application with an access token, which is a proof that the user is successfully authenticated and our web application grants access to the protected resources.
To use Facebook account for authentication, we will have to first register our application with Facebook.
Next enable Facebook OAuth authentication in ASP.NET Web API service
Step 1 : Facebook has made a breaking change to it’s API in version 2.4. The change is, in addition to the access token we also have to send the fields that we want in URI. In version 2.3 and earlier, the URI used to be as shown below. The access token is appended to the URI using a ?
With version 2.4, they have changed it to as shown below. Instead of using ? we have to use & to attach the access token to the URI
The defualt implementation for the Facebook Client, that is provided by Microsoft attaches the access token to the URI using a ?, so we have to change it to &. To do that,
Add a folder to the project. Name it “Facebook”
Add a class file to the folder. Name it FacebookBackChannelHandler.cs
Copy and paste the code from my blog.
Step 2 : In Startup.Auth.cs file in App_Start folder iclude the following code block. Use the AppID and AppSecret that we got after registering our application with Facebook.
var facebookOptions = new FacebookAuthenticationOptions()
Step 3 : On Login.html page, include the HTML for “Login with Facebook” button.
Step 4 : Wire up the click event handler for “Login with Facebook” button
$(‘#btnFacebookLogin’).click(function () );
Step 5 : In GoogleAuthentication.js file, modify isUserRegistered() and signupExternalUser() functions as shown below. I have included comments where the code is modified, so you know what has changed.
function isUserRegistered(accessToken) ,
success: function (response)
// Include provider parameter
function signupExternalUser(accessToken, provider) ,
success: function ()