Answer the question
In order to leave comments, you need to log in
VK_API: Question about the users.get method. Why is it returning an error?
When passing parameters, the method returns an error.
Error code 4.
Invalid signature.
Check the correctness of the request signature formation: https://vk.com/dev/api_nohttps
VK.init(function() {
VK.api("users.get", "{user_ids : '1'}", function(data) {
id = data['response']['0']['id'];
first_name = data['response']['0']['first_name'];
last_name = data['response']['0']['last_name'];
alert(id);
});
}, function() {
alert('Ошибка при инициализации VK.API');
}, '5.8');
Answer the question
In order to leave comments, you need to log in
VK.api("users.get", {user_ids:"1"}, function(data) {
alert(data.response.id);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question