Answer the question
In order to leave comments, you need to log in
[Odnoklassniki] How to update access_token without refresh_token?
Hello,
I have an API question. How can I renew the token if I requested it using the following parameters during authorization.
www.odnoklassniki.ru/oauth/authorize?
param.Put("client_id", appId);
param.Put("layout", "a");
param.Put("response_type", "token");
param.Put("redirect_uri", redirectUrl);
param.Put("scope", scopes);
https://oauth.ok.ru/blank.html#access_token=55ce73...
I don't receive refresh_token and as a result I can't call api.odnoklassniki.ru/oauth/token.do? to refresh the token. I searched apiok.ru/wiki/pages on the wiki , but found nothing.
I decided to pass the current access_token in the refresh_token parameter and naturally got the error {"error":"invalid_token","error_description":"Invalid refresh token"}.
Who will tell you what to do?
Answer the question
In order to leave comments, you need to log in
Tokens from client authorization are not renewed, they must be re-requested if the current token has expired.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question