Cant get user information using his/her user id

Aug 19, 2010 at 9:57 AM


I am trying new to facebook desktop applicaiton.I am using the facebook toolkit. when I try to get information of the person who sent me the friend request usign his/her user id then my code gives error.

the code is:

Api api = new Api(session);   //session is DesktopSession object
notificationsFriend_requests req = api.Notifications.Get().friend_requests;
List<user> user = req.uid;      // user list has count 1

IList<user>  lst =  api.Friends.GetUserObjects(user[0]);  // I am getting error here
// If i give my userid then it does not give error


Anyone can help me please.its urgent.

Thanks in advance.