Microsoft Excel
Microsoft Excel

Reputation: 159

DotNetOpenAuth WebServerClient.ProcessUserAuthorization() always returns null

I am trying to add implementation of refresh tokens into my API. I'm trying to use WebServerClient.RefreshAuthorization(), but that requires the IAuthorizationState parameter. The only way I can figure out how to get that is through WebServerClient.ProcessUserAuthorization(). The problem is, that method is always returning null, so I can't refresh my token.

var state = this.WebServerClient.ProcessUserAuthorization();
this.WebServerClient.RefreshAuthorization(state);

Is there a different method I can use on my API that the client can call to refresh their access token? Or is there a different way to get the IAuthorizationState of the client? Or anything is sounds like I'm doing wrong?

Upvotes: 1

Views: 1012

Answers (1)

Tim
Tim

Reputation: 11

"Facebook has recently shut down API v2.2, and with v2.3 the return format of the access token has changed"

FacebookApplication.VerifyAuthentication(_httpContext, GenerateLocalCallbackUri()) return null on Facebook

Upvotes: 1

Related Questions