L
L
Lenar Fattakhov2014-11-19 18:11:49
Social media
Lenar Fattakhov, 2014-11-19 18:11:49

How to get a list of friends in the classmates API?

I can't figure out what parameters to pass.
In the request calculator, he suggests doing this without a session_key, but then the error
PERMISSION_DENIED : User must grant an access to permission 'VALUABLE_ACCESS'
If you add a session_key, then it says that the signature is incorrect - Invalid signature.
And how is the session_secret_key that I get after authorization different from the session_key that I need to pass?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery Ozhiganov, 2015-02-01
@fr_end

FAPI5 is for games that open on the social network site itself in the game directory.
After OAuth authorization, when calling methods, an access_token is passed and the request is signed using the session_secret_key.
Can be reproduced on a calculator if you put Use OAuth and token.

E
Elena, 2014-11-19
@Nidora

apiok.ru/wiki/display/api/FAPI.init+ru

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script type="text/javascript" src="//api.odnoklassniki.ru/js/fapi5.js"></script>
    <script>
        var rParams = FAPI.Util.getRequestParameters(); console.log(rParams);
        FAPI.init(rParams["api_server"], rParams["apiconnection"],
                function() { console.log('ok')},
                function( error ) {  console.log(error); }
        );
    </script>
</head>
<body>

</body>
</html>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question