Answer the question
In order to leave comments, you need to log in
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);
Array
(
[0] => Array
(
[uid] => 570806097538
[birthday] => 2005-11-25
[birthdaySet] => 1
[name] => Galiuşa
)
)
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question