How to get birthday

Dec 4, 2010 at 12:33 PM
Edited Dec 4, 2010 at 12:35 PM

Can any one help me how to user birthdate. When i am getting user records i could not able to get user birth date and its showing me "1/1/1900"
Label1.Text = Api.Users.GetInfo().birthday_date;
Above mention code i am writing to get user birth_date 
Even not only i am having problem to get birth_date but, other user info as well. Like location,city,status,relationship status as well.
Please help me what i am making mistake here in writing above code.
thanks in advance.

Dec 13, 2010 at 12:40 PM
devubhamanek wrote:

Can any one help me how to user birthdate. When i am getting user records i could not able to get user birth date and its showing me "1/1/1900"
Label1.Text = Api.Users.GetInfo().birthday_date;
Above mention code i am writing to get user birth_date 
Even not only i am having problem to get birth_date but, other user info as well. Like location,city,status,relationship status as well.
Please help me what i am making mistake here in writing above code.
thanks in advance.

 

var userInfo = string.Format("SELECT birthday_date ,current_location FROM user WHERE uid=" + userID); 
string result = api.Fql.Query(userInfo); XmlDocument doc = new XmlDocument(); doc.LoadXml(result); 
string userbirthdaydate = doc.GetElementsByTagName("birthday_date")[0].InnerText.ToString(); 
string city = doc.GetElementsByTagName("current_location")[0].ChildNodes[0].InnerText.ToString(); 
string state = doc.GetElementsByTagName("current_location")[0].ChildNodes[1].InnerText.ToString(); 
string country = doc.GetElementsByTagName("current_location")[0].ChildNodes[2].InnerText.ToString();
 
 Before this you have to ask permission for the below: 

FB.Connect.showPermissionDialog(user_birthday,user_hometown,user_location)

 

Hope this helps you.. Thanks.

Dec 18, 2010 at 10:23 AM

same problem here. I need to get Tv and movie info but i couldnt success. I tried to add new permission for that action but still empty...