Microsft Owin Facebook Authentication not working in MVC app

I am working in an ASP.NET MVC application. I am using the default Visual Studio project template. Google authentication works fine, but Facebook doesn't. I have provided valid appId and appSecred generated on my facebook developer portal and the app is publicly available.

app.UseFacebookAuthentication(
       appId: "111111111111",
       appSecret: "aaaaaaaaa");

      

After the user tries to login with facebook, the system is redirected to https: // localhost: 44301 / Account / Login # =

It doesn't go into / Account / ExternalLoginCallback, so I'm guessing the login failed.

Can someone tell me what I am doing wrong?

Thanks in advance.

+3


source to share


2 answers


Go to NuGet Package Manager and run this command Install-Package Microsoft.Owin.Security.Facebook

and try signing in.



+2


source


3.0 uses legacy APIs, upgradeable to 3.1. https://github.com/aspnet/AspNetKatana/issues/38



+1


source







All Articles