找不到方法:'DotNetOpenAuth.AspNet.AuthenticationResult DotNetOpenAuth.AspNet.OpenAuthSecurityManager.VerifyAuthentication(System.String)'

时间:2014-09-11 12:25:16

标签: c# asp.net .net oauth facebook-oauth

我在使用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
          }
     }
 }

0 个答案:

没有答案