There are many ways to integrate the Facebook by Oauth like "RegisterFacebookClient". But I have some issues with this method, as I get isSuccussfull=false all the time. With this, I have to integrate Facbook easily. I hope this will help others too.
Firstly, create a New ASp.Net MVC 4 Web Application project in Visual Studio 2012 and select "Internet Application".

Before creating a .NET MVC application, we have to register the domain name that will be used for the web site at the Facebook development site: https://developers.facebook.com/apps. After this, we will have an "App ID" and "App Secret".
Create New App
1. Click on the Add a New App.
2. Then Enter the Display name like "Demo" and Contact Email. After this click on "Create App ID".


Then your app is created. Now you have to set the basic settings of the App. Then select "Platform" and click on "Web". Now you have to enter your "Site URL".

Then go to the App Review menu and make your app live. After making your app live, a popup will be displayed on the screen in which you have to select the category of your app like "Pages" to make your app public. So, it will become available to everyone.

Now your app is ready to integrate.
I have registered my class named as "FacebookScopedClient.cs" for Facebook. Write a one line code in AuthConfig.cs
Here is the code for FacebookScopedClient.cs class which has inherited IAuthenticationClient Interface.
- OAuthWebSecurity.RegisterClient(new FacebookScopedClient("YourAppId", "YourSecretId"), "Facebook", null);

Former memberPosted Jun 23, 2017, 5:39 AM
Which asp.net mvc version you used here?