The error is this:
Access denied: no access to call this method
The URL that the user navigates to and gives us access or token:
https://oauth.vk.com/authorize?сlient_id=$id&display=page&redirect_uri=http://lend.sloadmx.xx&scope=friends,groups,video&response_type=token&v=5.44 A script that sends data to a method and accepts answers:
var get = location.hash.split('=')[1]; var get = get.split('&')[0]; // получаем access_token if (get) { function callbackFunc(result) { console.log(result.error.error_msg); } var url = "https://api.vk.com/method/groups.join?group_id=112450248&v=5.44&access_token=" + get; var script = document.createElement('SCRIPT'); script.src = url + "&callback=callbackFunc"; document.getElementsByTagName("head")[0].appendChild(script); }; Most likely, if you use Standalone-applications, then only together with the OPEN API.
But it really annoys me there the whole thing, where you can turn it on in the settings, and a list will appear with the REDIRECT URL and so on. Nevertheless, for other methods it is impossible to do anything at all, with your URL.
For this, no REDIRECT URL exists, it seems, and the documentation is lying.
redirect_urishould behttps://oauth.vk.com/blank.html, see vk.com/dev/auth_mobile - Stackblank.html- And this is java for android and stuff. Because the documentation is a bit out of order with contactors, I think it's worth asking them about it. - Alexey ShimanskyVK.Auth.login(function(response) {with the settings (rights)262146(which corresponds toscope=friends,groups), then afterVK.Api.call('groups.invitein when requestingVK.Api.call('groups.invitewill still beat outAccess denied- Alexey Shimansky