in facebook integration I have to access the url of in which access token is given, bt instead of i am getting my published url in asp.net
<p>I am using the following code on Page_Load of facebook_login page in asp.net web application,
after redirecting this url i have got the accesstoken in url but when i try to access this current url via HttpContext.Current.Request.Url.AbsoluteUri it gave the url of app where it is published not the url which is currently in window .How can I access this access token or userdetails. Please help me asap its very urgent</p>

<pre><code>var uriParams = new Dictionary&lt;string, string&gt;() {
                    {"client_id", facebookAppId},
                    {"response_type", "token"},
                    {"scope", "user_about_me, read_stream, email"},
                    {"redirect_uri", "http://apps.facebook.com/appNameHere/"}
                }; 
        StringBuilder urlBuilder = new StringBuilder();
        foreach (var current in uriParams)
        {
            if (urlBuilder.Length &gt; 0)
            {
                urlBuilder.Append("&amp;");
            }
            var encoded = HttpUtility.UrlEncode(current.Value);
            urlBuilder.AppendFormat("{0}={1}", current.Key, encoded);
        }
        var loginUrl = "http://www.facebook.com/dialog/oauth?" + urlBuilder.ToString();
        Response.Redirect(loginUrl);
</code></pre>
