facebook.utility.facebookexception - Could not deserialize data returned from server

Nov 22, 2009 at 3:57 PM
Edited Nov 22, 2009 at 3:59 PM

Hello there,

i just got the facebook sdk for .net, and i am working on a simple winforms application that reads message from the logged in user's inbox. the problem is i get this exception message :

"Could not deserialize data returned from server"

here's the line of code :

List<Facebook.Schema.thread> _inbox_msg = (List<Facebook.Schema.thread>)_ozymandea_facebook_service.Message.GetThreadsInFolder(0,(int)_ozymandea_facebook_service.uid,_notifications.messages.unread, 1);        

*where notifications.messages.unread = total unread messages in my inbox.  i got about 465 messages in my inbox. it returns the aformentioned exception with this code.


but if i modify, and add 20 instead, it works and its able to retrieve 20 unread messages...anything more and i get the exception message.

List<Facebook.Schema.thread> _inbox_msg = (List<Facebook.Schema.thread>)_ozymandea_facebook_service.Message.GetThreadsInFolder(0, (int)_ozymandea_facebook_service.uid,20, 1);       

what could i be doing wrong? and what could be the solution? 

thanks, any suggestion would be totally appreciated.