H
H
heatshot132018-04-07 09:53:14
Classmates
heatshot13, 2018-04-07 09:53:14

Why doesn't api odnoklassniki return my friend number in a request?

hello i
have this code

$response = OdnoklassnikiSDK::makeRequest("users.getInfo", array("fields" => "friend,name,birthday", "uids" => $friends[2]));
print_r ($response);

at the exit
Array
(
    [0] => Array
        (
            [uid] => 570806097538
            [birthday] => 2005-11-25
            [birthdaySet] => 1
            [name] => Galiuşa 
        )

)

where is the number of friends parameter friend ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Egorichev, 2018-04-13
@MaksimEgorichev

This parameter is not the number of friends, but a Boolean that indicates whether the user is a friend of the user on whose behalf the request was made. And this field is not returned in this method now.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question