title: Getting user e-mail with facebook C# sdk
body: <p>Good evening!
  I'm developing a web application with asp.net C#. In this application the user has the option to create  a login using its facebook account (facebook connect).</p>
  
  <p>I'm using thye facebook  C# sdk from codeplex (<a href="http://facebooksdk.codeplex.com/" rel="nofollow">http://facebooksdk.codeplex.com/</a>).
  I can easily retrieve the name, photo , etc.... but I don't know how to retrieve the user e-mail.</p>
  
  <p>To call the FB login button I use this code:</p>
  
  <pre><code>&lt;fb:login-button onlogin="window.location.reload()" perms='email'&gt;&lt;/fb:login-button&gt;      
  </code></pre>
  
  <p>It works just fine and to retrieve user's info I use this C# code:</p>
  
  <pre><code>            // Authenticated, created session and API object
          sessaoFB = new ConnectSession(APPLICATION_KEY, SECRET_KEY);   
  
          if (!sessaoFB.IsConnected()) {
              this.phLogar.Visible = true;
              this.phLogado.Visible = false;
          } else {
  
              // Authenticated, create API instance
              _facebookAPI = new Api(sessaoFB);
              Auth auth = new Auth(sessaoFB);
  
              if (!this.Page.IsPostBack)
              {
                  this.phLogar.Visible = false;
                  this.phLogado.Visible = true;
  
                  try
                  {
                      //User data
                      user usuarioFB = _facebookAPI.Users.GetInfo();
                      this.lblNome.Text = usuarioFB.first_name;                        
                      imgFoto.ImageUrl = usuarioFB.pic_big;                        
                  }
                  catch (Exception ex)
                  {
                      this.lblNome.Text = ex.Message;
                  }
  
              }
          }
  </code></pre>
  
  <p>How can I get the user's e-mail suing the facebook C# sdk? Do any of you guys know?</p>
  
  <p>Thanks in advance for any help!
  Best regards.</p>