public static void auth(string login, string passw)
{
using (var net = new HttpRequest())
{
net.UserAgent = Http.ChromeUserAgent();
CookieDictionary cookie = new CookieDictionary(false);
net.Cookies = cookie;
string result;
net.Post(String.Format("https://login.vk.com/?act=logi&email={0}&pass={1}", login, passw)); //авторизация
string token = net.Get("https://oauth.vk.com/authorize?client_id=5487405&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=friends&response_type=token&v=5.52").ToString(); // запрос токена
net.AllowAutoRedirect = false;
MessageBox.Show(token);
}
}