M
M
mkhamzanov2018-02-05 14:10:28
API
mkhamzanov, 2018-02-05 14:10:28

How to fix an error related to the Odnoklassniki API?

Hello everyone, I use the following method
https://apiok.ru/dev/methods/rest/friends/friends.get
I want to be able to get a list of friends of any user.
An error is displayed:
error_msg:PARAM : Only one of session_key or uid must be specified The
question has already been asked here:
How to fix an error related to the Odnoklassniki API?
The error says that you need to use either session (then the method will return a list of groups of the person who created the session) or uid (then it will return a list of the person whose uid you specify).
But if you enter only the uid, and overwrite the rest, then when you try to call the method, the message access token can't be empty is displayed.
And if vice versa, then I can only get my friends, and I need to get friends of any user. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Egorichev, 2018-02-07
@MaksimEgorichev

If an application of the EXTERNAL type is used, then the method must be called within the user session and without passing the uid in a separate parameter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question