Is user online

Dec 12, 2009 at 5:12 PM

Hi

How can I know if user is online or not?

 

 

thanks

Dec 17, 2009 at 3:03 AM

   string line_present = api.Fql.Query("SELECT online_presence  FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 =" + me.uid + ")");

   XmlDocument xmlDoc = new XmlDocument();  
   xmlDoc.LoadXml(line_present);
   XmlNodeList LineList = xmlDoc.GetElementsByTagName("online_presence");

   then you will get friend`s online_presence.

Dec 19, 2009 at 2:24 PM

thanks mate