Facebook.User u=_fbService.GetUserInfo();

Jan 8, 2010 at 11:58 AM

Hello Friends,

i am developing code for get face book friends. for that i had used following code but it gives me error.

Exception Details: System.ArgumentException: Requested value 'Depends....' was not found.
at line :  f=_fbService.GetFriends();

UserID = _fbService.UserId;
            Facebook.User u=_fbService.GetUserInfo();
            Response.Write("First Name:-" + u.FirstName + "<br> Last Name:- " + u.LastName + "<br>Sex:- " + u.Sex) ;
             
            Collection<Facebook.User> f =new Collection<Facebook.User>();
            f=_fbService.GetFriends();   
            Response.Write("<br> Friends count you have:-" + f.Count);

any body help me?