Reputation: 159
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
Reputation: 11
"Facebook has recently shut down API v2.2, and with v2.3 the return format of the access token has changed"
Upvotes: 1