From e6218c0429c4ee9f371e76cd8226724fde1312c5 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Wed, 7 Jan 2015 17:06:22 -0800 Subject: [PATCH] React to ReadFor breaking change. --- .../FacebookAuthenticationHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {