[Classmates] How to update without access_token refresh_token?

Good day
I have a question about the API. How do I upgrade token, if I requested using the following parameters in the authorization.

param.Put("client_id", appId);
param.Put("layout", "a");
param.Put("response_type", "token");
param.Put("redirect_uri", redirectUrl);
param.Put("scope", scopes);


I cannot get refresh_token and in the end, I can't call api.odnoklassniki.ru/oauth/token.do? to refresh the token. I looked on the wiki apiok.ru/wiki/pages, found nothing.

Decided in the refresh_token parameter to pass the current access_token and naturally got the error {"error":"invalid_token","error_description":"Invalid refresh token"}.

Someone tell me what to do?
September 18th 19 at 23:53
1 answer
September 18th 19 at 23:55
Tokens from the client authorization are not renewed, they need to perestrelyat if the current token has expired.
How to perestrelyat? On the new login? - Jayce.Hyatt92 commented on September 18th 19 at 23:58
You can query on api-support@ok.ru LONG_ACCESS_TOKEN and add it to the scope, then the tokens will take longer to act (comes expected expires_in) - madyson50 commented on September 19th 19 at 00:01
the second case is to use a server - side OAuth.
It all depends on the type of application, because the server needs the secret key of the application, then use it in Android/iOS/etc apps somewhat unsafe. - madyson50 commented on September 19th 19 at 00:04

Find more questions by tags Classmates