Good day
I have a question about the API. How do I upgrade token, if I requested using the following parameters in the 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 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?
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
https://apiok.ru/wiki/pages/viewpage.action?pageId...
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