diff --git a/src/Microsoft.AspNet.Security.Facebook/FacebookAuthenticationHandler.cs b/src/Microsoft.AspNet.Security.Facebook/FacebookAuthenticationHandler.cs index 6520902559..455cf1a4c2 100644 --- a/src/Microsoft.AspNet.Security.Facebook/FacebookAuthenticationHandler.cs +++ b/src/Microsoft.AspNet.Security.Facebook/FacebookAuthenticationHandler.cs @@ -10,6 +10,7 @@ using System.Text; using System.Threading.Tasks; using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Security; +using Microsoft.AspNet.PipelineCore.Collections; using Microsoft.AspNet.Security.OAuth; using Microsoft.AspNet.WebUtilities; using Microsoft.Framework.Logging; @@ -39,7 +40,7 @@ namespace Microsoft.AspNet.Security.Facebook tokenResponse.EnsureSuccessStatusCode(); string oauthTokenResponse = await tokenResponse.Content.ReadAsStringAsync(); - IFormCollection form = FormHelpers.ParseForm(oauthTokenResponse); + IFormCollection form = new FormCollection(FormReader.ReadForm(oauthTokenResponse)); var response = new JObject(); foreach (string key in form.Keys) {