How to get email address from vk.api?

Evgeniy Shinkarenko picture Evgeniy Shinkarenko · Aug 27, 2014 · Viewed 10.3k times · Source

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);

Answer

Andrey Banshchikov picture Andrey Banshchikov · Apr 10, 2015

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