public override ClaimsIdentity ProcessSignInResponse(string realm, string originalUrl, HttpContextBase httpContext) { var client = new FacebookClient(this.applicationId, this.secret); AuthenticationResult result; try { result = client.VerifyAuthentication(httpContext, this.MultiProtocolIssuer.ReplyUrl); } catch (WebException wex) { throw new InvalidOperationException(new StreamReader(wex.Response.GetResponseStream()).ReadToEnd(), wex); } var claims = new List<Claim> { new Claim(System.IdentityModel.Claims.ClaimTypes.NameIdentifier, result.ExtraData["id"]) }; foreach (var claim in result.ExtraData) { claims.Add(new Claim("http://schemas.facebook.com/me/" + claim.Key, claim.Value)); } return new ClaimsIdentity(claims, "Facebook"); }