FacebookException: Could not deserialize data returned from server

Apr 30, 2010 at 10:08 AM

Hi Friends,

i am using facebook toolkit to import user profile iniformation from facebook.i can import from some of the facebook id's.but some other's id dispalying error as

FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112
   System.Xml.XmlConvert.ToInt32(String s) +100
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read9_hs_info(Boolean isNullable, Boolean checkType) +550
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read19_user(Boolean isNullable, Boolean checkType) +1173
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read20_users_getInfo_response(Boolean isNullable, Boolean checkType) +524
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read21_users_getInfo_response() +73

[InvalidOperationException: There is an error in XML document (37, 7).]
   System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) +637
   System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle) +32
   System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) +163
   Facebook.Utility.Utilities.DeserializeXML(String xmlInput) +323

[FacebookException: Could not deserialize data returned from server]
   Facebook.Utility.Utilities.DeserializeXML(String xmlInput) +381
   Facebook.Rest.Users.GetInfo(String uids, Boolean isAsync, GetInfoCallback callback, Object state) +460
   Facebook.Rest.Users.GetInfo(Int64 uid) +40
   Facebook.Rest.Users.GetInfo() +22


can anyone tell me the issue behind this

thanx in advance

Apr 30, 2010 at 5:42 PM

This issue has been fixed. The fix can be found in revision 48896.  This particular revision is part of the 3.1 Beta SDK.  Note - The new beta SDK addresses the new Facebook permissions which you'll be required to migrate to by 6/1.  Might as well do it now!

- Dan