When getting messages via the command facebook.message.getThreadsInFolder and returning for a lot of messages, ie messages that are older than your top 10
<thread>
<thread_id>7044642451</thread_id>
<subject/>
<recipients list="true">
<uid>551972272</uid>
<uid>546062387</uid>
</recipients>
<updated_time>1194427611</updated_time>
<parent_message_id>0</parent_message_id>
<parent_thread_id>0</parent_thread_id>
<message_count>11</message_count>
<snippet>:P nite</snippet>
<snippet_author>546062387</snippet_author>
<object_id>0</object_id>
<unread>0</unread>
<messages list="true">
<message>
<message_id>7044642451_0</message_id>
<author_id xsi:nil="true"/>
<body xsi:nil="true"/>
<created_time xsi:nil="true"/>
<attachment/>
<thread_id>7044642451</thread_id>
</message>
</messages>
</thread>
The <message> is truncated !!
I tracked it down to the following XML causing issues
<author_id xsi:nil="true"/>
<body xsi:nil="true"/>
<created_time xsi:nil="true"/>
Changing the XSD and then the Xsd2CodeSource.cs manually:
public partial class message
private long? author_idField;
private long? created_timeField;
will fix the issue