This project is read-only.

User.Events doesn't work - throws error

Jun 18, 2010 at 12:35 PM
Edited Jun 18, 2010 at 12:37 PM

hi,

 

 seems like there is a problem when i try to get all events for the user.

 

 var result = GraphSession.Request((User u) => new { u.Events },"facebook_user_id");
int total = result.Events.Count();

 

  but this one gives me error saying,

 Could not convert value of property 'updated_time' to a DateTime.



 Source File: OpenGraph.net-0.9.1-src\development\projects\Facebook.OpenGraph\Util\DynamicJsonManager.cs    Line: 206

how do i get the list of all events.

i think something is wrong with the json parsing stuff.

but this following code works.

var result = GraphSession.Request((User u) => new { u.Name, u.Friends },"facebook_user_id");
int total = result.Friends.Count();