I've been scratching my head and googling all night but nothing seems to be working for me. When trying to login to my mvc5 app using Facebook i keep on getting a null reference error in AuthenticationManager.GetExternalLoginInfoAsync(). Logging in using Google works perfectly.
Here's my setup:
- Site is running on IIS Express (also tried Local IIS).
- Already tried both http and https as some articles are saying fb requires SSL. So i'm sticking with
https://localhost:44302/at the moment (Note: Google works fine either way).
Note: I am using the default setup/templates in mvc5, didn't change anything - except the AppId and AppSecret for fb of course.
Can anyone throw in some solutions pls. Thanks.