Windows.Security.Authentication.Web.WebAuthenticationBroker.AuthenticateAsync throws error "value does not fall within the expected range."
I used Windows.Security.Authentication.Web.WebAuthenticationBroker.AuthenticateAsync to perform Facebook authentication and it always works well. Refer to article https://docs.microsoft.com/en-us/uwp/api/windows.security.authentication.web.webauthenticationbroker
However, it didn't work and throws error message "value does not fall within the expected range." recently. I verified the call back URL from " WebAuthenticationBroker.GetCurrentApplicationCallbackUri().AbsoluteUri" and found out that the Windows App Id is changed! So I updated the related Windows App Id in the Facebook App setting's configuration page, and now the authentication works again!
However, it didn't work and throws error message "value does not fall within the expected range." recently. I verified the call back URL from " WebAuthenticationBroker.GetCurrentApplicationCallbackUri().AbsoluteUri" and found out that the Windows App Id is changed! So I updated the related Windows App Id in the Facebook App setting's configuration page, and now the authentication works again!
Comments
Post a Comment