title: How to access the users Email id with asp.net mvc facebook?
body: <p>I am using this <a href="http://www.asp.net/mvc/tutorials/security/using-oauth-providers-with-mvc" rel="nofollow">Link</a> as a starting point as i am new to Asp.net MVC as such.</p>
  
  <p>I have been able to get the data of the facebook users <strong>what permissions should i use to get the users Email ID and where?</strong></p>
  
  <pre><code>dynamic me = client.Get("me");
  if (response.ContainsKey("verified"))
  {
      facebookVerified = response["verified"];
  }
  else
  {
      facebookVerified = false;
  }
  db.ExternalUsers.Add(new ExternalUserInformation
  {
       UserId = newUser.UserId,
       FullName = me.name,
       Link = me.link,
       Email = model.Email, // Want the Email ID from Facebook
       Gender = me.gender,
       Verified = facebookVerified
  });
  </code></pre>
  
  <p>LOGIN CODE:</p>
  
  <pre><code>[HttpPost]
  [AllowAnonymous]
  [ValidateAntiForgeryToken]
  public ActionResult Login(LoginModel model, string returnUrl)
  {
      if (ModelState.IsValid &amp;&amp; WebSecurity.Login(model.UserName, model.Password, persistCookie: model.RememberMe))
      {
          return RedirectToLocal(returnUrl);
      }
  
      // If we got this far, something failed, redisplay form
      ModelState.AddModelError("", "The user name or password provided is incorrect.");
      return View(model);
  }
  </code></pre>