我在使用Facebook登录oAuth时收到此错误。
var dd = OAuthWebSecurity.VerifyAuthentication();
我的代码是
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
var dd = OAuthWebSecurity.VerifyAuthentication();
if (dd.IsSuccessful == true)
{
Response.Write("Login Sucess : " + dd.UserName + ", " + dd.ProviderUserId + ", " + dd.Provider);
//Do something here like store this information in a database or in the session to remember the active login
}
}
}