internal static string StripAwayProhibitedKeys(Uri currentUrl)
{
NameValueCollection nvp = HttpUtility.ParseQueryString(currentUrl.GetComponents(UriComponents.Query, UriFormat.Unescaped));
var @params = new Dictionary<string, string>(nvp.Count);
foreach (string name in nvp)
{
if (name != null && !s_prohibitedKeys.Contains(name))
@params[name] = nvp[name];
}
return currentUrl.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) + "?" + FacebookApi.EncodeDictionary(@params);
}