I am testing an .NET MVC4 application using facebook OAuth services. When I use my facebook account (which I already authorized the application), I have no problem. But when I use my wife's account I am always redirected to the ExternalLoginFailure page.
The piece of code that redirects me to there is this:
AuthenticationResult result = OAuthWebSecurity.VerifyAuthentication(Url.Action("ExternalLoginCallback", new { ReturnUrl = returnUrl })); if (!result.IsSuccessful) { return RedirectToAction("ExternalLoginFailure"); }
result.IsSuccessful is always false but I don't know why.
I tried to use log4net to log info but no success. I tried to update OAuth assemblies but no success. I tried to use Glimpse but no sucess.
Any ideas ?