Всё делаю по инструкции
https://vk.com/dev/auth_sites
получаю ошибку
{"error":"invalid_request","error_description":"redirect_uri has wrong domain, check application settings"}
<?php
$link = '<a href="https://oauth.vk.com/authorize?client_id=5580872&display=page&redirect_uri=http://oauth/callback&scope=friends&response_type=code&v=5.92">тык</a>';
if(!empty($_GET['code'])) {
echo '<pre>';
print_r($_GET['code']);
echo '</pre>';
echo '<a href="https://oauth.vk.com/access_token?client_id=5580872&client_secret=7FZtz377OtcKydMd7IoL&redirect_uri=http://oauth&code='. $_GET['code'] .'">тык</a>';
}
echo $link;