"Could not deserialize data returned from server" when I call Api.Links.Get

Apr 8, 2010 at 4:08 PM
Edited Apr 8, 2010 at 4:11 PM

I have this inner error : "There is an error in XML document (33, 10)" when I call Api.Links.Get. It's not apearing all  the time, I think is depending on the Facebook User ID. I tried the 3.1 Beta version of binaries and it's not workink as well.

Thanks for your help,


Apr 8, 2010 at 6:09 PM

I saw that it's because of the links posted from IPhone on facebook. The XML for <summary> and <url> tags is list="true" not a string value as you guys expected to be. Do you have a solution for that?

Thanks, Augustin  

Apr 8, 2010 at 6:32 PM

I am getting the same error with Api.Users.GetInfo()

Anybody any updates?


Pinal Bhatt

Apr 8, 2010 at 6:49 PM

Api.Users.GetInfo() shoul be ok if you use the last version (3.0 or 3.1 beta)

Apr 8, 2010 at 10:44 PM
Edited Apr 8, 2010 at 11:02 PM

I have version 3.01 (dll file versions and am getting this problem.  I have two users I test with and only one is causing the error.

edited to add stack trace:

Users.GetInfo failed with exception : Facebook.Utility.FacebookException: Could not deserialize data returned from server ---> System.InvalidOperationException: There is an error in XML document (22, 7). ---> System.FormatException: Input string was not in a correct format.
  at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
  at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
  at System.Xml.XmlConvert.ToInt32(String s)
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read9_hs_info(Boolean isNullable, Boolean checkType)
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read19_user(Boolean isNullable, Boolean checkType)
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read20_users_getInfo_response(Boolean isNullable, Boolean checkType)
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderusers_getInfo_response.Read21_users_getInfo_response()
  --- End of inner exception stack trace ---
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
  at Facebook.Utility.Utilities.DeserializeXML[T](String xmlInput)
  --- End of inner exception stack trace ---
  at Facebook.Utility.Utilities.DeserializeXML[T](String xmlInput)
  at Facebook.Rest.Users.GetInfo(String uids, Boolean isAsync, GetInfoCallback callback, Object state)
  at Facebook.Rest.Users.GetInfo(Int64 uid)
  at Facebook.Rest.Users.GetInfo()
  at WalkStyles.ICOnFacebook_PageUI.Page_Init(Object sender, EventArgs e) in C:\Projects\WalkStyles\Phase3\Web\MemberSite\Solution\ICount\UserControls\ICOnFacebook_PageUI.ascx.vb:line 249

Apr 8, 2010 at 11:55 PM

Fixed by binaries attached to issue 17036, here:  http://facebooktoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=17036

My apologies for not finding it there!  :(  Thanks for providing the compiled binaries.  :)