Answer the question
In order to leave comments, you need to log in
How to connect server authorization to Odnoklassniki via OAuth2 protocol?
Can't get access_token after authorization. I use off as an instruction. page .
The first difference from the docks that I came across is that it is necessary to duplicate some of the parameters in the body of the POST request.
Further, in the request I use authorization_code . I always get an invalid identity type error in response:
{"error_description":"Invalid grant type","error":"invalid_grant"}
{"error_description":"Unknown client","error":"invalid_client"}
, although I was able to go through the previous step (authorization on the application side), and get a temporary code in the response. Answer the question
In order to leave comments, you need to log in
I still couldn't do it in the script, I did it through curl, tried all the launch options
curl -d post .json -X POST ' https://api.ok.ru/oauth/token.do?code=XXXXXX&grant... '
post file - same as in get requests
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question