Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get email address from vk.api?

Tags:

javascript

vk

Im trying to get email address. After success login i have firstname, lastname, all except email. please help.

VK.Auth.login(function (response) {
            if (response.session) {


            } else {

            }
        }, 4194304);
like image 810
Evgeniy Shinkarenko Avatar asked Aug 27 '14 13:08

Evgeniy Shinkarenko


1 Answers

When you get Access Token, VK also gives you Email and User ID, but you need specific permission for that - "email".

like image 94
Andrey Banshchikov Avatar answered Oct 25 '22 15:10

Andrey Banshchikov