Вк не дает токен

vedushiigospodin

Новичок
Регистрация
03.01.2017
Сообщения
3
Благодарностей
0
Баллы
1
Разбирал статью http://zennolab.com/discussion/threads/rabota-s-api-i-post-get-na-primere-vk-com.23796/
Дошел до получения токена


передаю в гет запросе
URL=http://api.vk.com/oauth/authorize?client_id={-Variable.appid-}&scope={-Variable.scope-}&redirect_uri=http://oauth.vk.com/blank.html&display=popup&response_type=token
Referer=https://vk.com/
Useragent={-Variable.useragent-}
Accept: text/html, application/xhtml+xml, */*
Accept-Language: ru-RU
Accept-Encoding: gzip, deflate
Host: oauth.vk.com
Connection: Keep-Alive
Cookie={-Variable.remixlang-}; remixflash=0.0.0; remixscreen_depth=24; remixdt=0; {-Variable.remixsid-}
Получаю ссылку типа

https://login.vk.com/?act=grant_access&client_id=5822090&settings=134485126&redirect_uri=http://oauth.vk.com/blank.html&response_type=token&group_ids=&direct_hash=ff6708d1584be6d0f1&token_type=0&v=&state=&display=popup&ip_h=c934672358643a1540&hash=5d2e556dafd9fc24e2

которую использую как URL в следующем запросе, но вместо токена получаю-Location: http://oauth.vk.com/error?err=2

остальные параметры последнего запроса Referer=http://api.vk.com/oauth/authorize?client_id={-Variable.appid-}&scope={-Variable.scope-}&redirect_uri=http://oauth.vk.com/blank.html&display=popup&response_type=token
Useragent тот же
Cookie=h={-Variable.h-}; s={-Variable.s-}; l={-Variable.l-}; p={-Variable.p-}; remixlang=0; remixsid={-Variable.remixsid-}; remixflash=19.0.0; remixscreen_depth=24; remixdt=0; remixseenads=1.

Как я понял, я передаю не те куки файлы, как вообще определить какие они нужны для токена и что я делаю не так?
 

TheHawk

Client
Регистрация
12.09.2015
Сообщения
68
Благодарностей
12
Баллы
8

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)