title: Version Deprecation Facebook Graph API v2.2
body: <p>our Facebook Login is not working right now. We have received a message from Facebook Developer Portal:</p>
  
  <blockquote>
    <p>"Name of app" currently has access to Graph API v2.2 which will reach the end of its
    2-year lifetime on 27 March, 2017. To ensure a smooth transition,
    please migrate all calls to Graph API v2.3 or higher.</p>
    
    <p>To check if your app will be affected by this upgrade you can use the
    Version Upgrade Tool. This will show you which calls, if any, are
    affected by this change as well as any replacement calls in newer
    versions. If you do not see any calls, your app may not be affected by
    this change.</p>
    
    <p>You can also use our changelog to see the full list of changes in all
    Graph API versions.</p>
  </blockquote>
  
  <p>We are using ASP.NET MVC 5, and we are using or authentication like this:</p>
  
  <pre><code>var facebookAuthenticationOptions = new FacebookAuthenticationOptions()
              {
                  AppId = "****",
                  AppSecret = "****",
                  AuthenticationType = "Facebook",
                  SignInAsAuthenticationType = "ExternalCookie",
                  Provider = new FacebookAuthenticationProvider
                  {
                      OnAuthenticated = async ctx =&gt; ctx.Identity.AddClaim(new Claim(ClaimTypes.Email, ctx.User["email"].ToString()))
                  }
              };
  
              facebookAuthenticationOptions.Scope.Add("email");
  </code></pre>
  
  <p>But today, our login info object, is null in ExternalLoginCallback:</p>
  
  <pre><code>        [HttpGet]
          [AllowAnonymous]
          [RequireHttps]
          public async Task&lt;ActionResult&gt; ExternalLoginCallback(string returnUrl = null)
          {
              try
              {
                  var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
                  if (loginInfo == null)
                  {
                      return RedirectToAction("Login");
                  }
  ... more code here...
  </code></pre>
  
  <p>In Facebook Dev. Portal our API Version is 2.3</p>
  
  <p>We have tested many options, with no results:</p>
  
  <p><a href="https://stackoverflow.com/questions/31714500/access-email-address-in-the-oauth-externallogincallback-from-facebook-v2-4-api-i">Access email address in the OAuth ExternalLoginCallback from Facebook v2.4 API in ASP.NET MVC 5</a></p>
  
  <p><a href="https://stackoverflow.com/questions/32059384/why-new-fb-api-2-4-returns-null-email-on-mvc-5-with-identity-and-oauth-2">Why new fb api 2.4 returns null email on MVC 5 with Identity and oauth 2?</a></p>
  
  <p>Thank you much for the help.</p>