Take the 2-minute tour ×


public Vk_connect()
        string url = "https://oauth.vk.com/authorize?client_id=" + appID + "&scope=friends,photos,audio,video,docs,notes,wall,messages&redirect_uri=https://oauth.vk.com/blank.html&display=popup&response_type=token";
        this.Text = "Connect to VK";
        vkconnect.Navigated += vkconnect_Navigated;

    void vkconnect_Navigated(object sender, WebBrowserNavigatedEventArgs e)
        token = vkconnect.Url.ToString();
        if (token.Contains("#access_token"))
            token = token.Split('#')[1];
            id = token.Split('=')[3];
            token = token.Split('&')[0];
            token = token.Split('=')[1];
            config.token = token;
            config.userid = id;
share|improve this question
Should I post the whole code somewhere? –  Amator Apr 19 '13 at 13:16
Is it enough(part of code)? –  Amator Apr 23 '13 at 15:48

Your Answer



Browse other questions tagged or ask your own question.