my sample project at registered at developer.facebook version 2.4 and requested permissions are *

email,birthday,gender

*

default.aspx

        string code = Request.QueryString["code"];
        if (!string.IsNullOrEmpty(code))
        {
           // dynamic info = fb.Get("me?birthday");
            string data = FaceBookConnect.Fetch(code, "me");
            FaceBookUser faceBookUser = new JavaScriptSerializer().Deserialize<FaceBookUser>(data);
            faceBookUser.PictureUrl = string.Format("https://graph.facebook.com/{0}/picture", faceBookUser.Id);
            pnlFaceBookUser.Visible = true;
            lblId.Text = faceBookUser.Id;
            lblUserName.Text = faceBookUser.UserName;
           lblName.Text = faceBookUser.Name;
            lblEmail.Text = faceBookUser.Email;
            lblbirthday.Text = faceBookUser.birthday;
            lblf_name.Text =faceBookUser.first_name;
            lblgender.Text = faceBookUser.gender;
           ProfileImage.ImageUrl = faceBookUser.PictureUrl;
            btnLogin.Enabled = false;
        }

Related posts

Recent Viewed