Answer the question
In order to leave comments, you need to log in
VK. VK registration?
Good evening, I have such a question, how to register on VK? I have some part of the code, when you click on the login button, "code=..." is added to the address bar, nothing else happens, but I need to make sure that after clicking the button, the button leaves and photos are displayed in its place and first_name. Please tell me how to implement this???
Please do not write anything about YouTube and vk api, they say, read, etc., I tried everything, it doesn’t work out ((
I hope you can help me, I would be very happy !!!
my code is here ...
<?
require_once('config.php');
if(empty($_SESSION['token'])){
echo " <a href='https://oauth.vk.com/authorize?client_id=".$appid." &display=page&redirect_uri=".$redirect_url."&scope=".$scope."&response_type=code&v=5.62
' >Вход по вк </a> " ;
}
?>
Answer the question
In order to leave comments, you need to log in
1. First, where do the
appid, redirect_uri, etc. variables come from in the code?
I advise you to read the VK documentation, everything is extremely and clearly described
https://vk.com/dev/access_token
https://vk.com/dev/Login
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question