I use asp.net MVC webapi, and have been using facebook login for a long time. But suddenly there is an error as below:

bellow my code: Startup.Auth.cs
FacebookAuthenticationOptions options = new FacebookAuthenticationOptions();
options.AppId = ConfigurationManager.AppSettings["FBappId"];
options.AppSecret = ConfigurationManager.AppSettings["FBappSecret"];
string[] FBScopes = ConfigurationManager.AppSettings["FBScope"].ToString().Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries);
foreach (string s in FBScopes)
{
options.Scope.Add(s);
}
Microsoft.Owin.Security.Twitter.Messages.RequestToken request = new Microsoft.Owin.Security.Twitter.Messages.RequestToken();
options.Provider = new FacebookAuthenticationProvider()
{
OnAuthenticated = async context =>
{
//Get the access token from FB and store it in the database and
//use FacebookC# SDK to get more information about the user
context.Identity.AddClaim(
new System.Security.Claims.Claim("FacebookAccessToken", context.AccessToken));
}
};
options.SignInAsAuthenticationType = DefaultAuthenticationTypes.ExternalCookie;
//options.SignInAsAuthenticationType = Microsoft.Owin.Security.AppBuilderSecurityExtensions.GetDefaultSignInAsAuthenticationType(app);
app.UseFacebookAuthentication(options);
So far it's working fine and no such error ever appeared. Anyone know why this happens?
Have there been any security changes by facebook?
Advice me please.

In my case, it was the "Valid OAuth redirect URIs" property which was set to an old redirect URI I had set before.
Once I changed it to the current port, it worked correctly.
This setting is in the "Products=>Facebook Login" section.