Facebook.OAuthContext.GetCurrentUrl C# (CSharp) Method

GetCurrentUrl() protected method

Generates url from the current HttpRequest.Url which is useful to pass into Authenticate or BeginAuthenticate methods as the redirectUri argument.
protected GetCurrentUrl ( HttpContext context ) : string
context System.Web.HttpContext
return string
        protected virtual string GetCurrentUrl(HttpContext context)
        {
            return context.Request.Url.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped);
        }