Friends / Block list integration

Chat can be configured to import existing friends/block list from the website it integrates into. Refer to "Basic integration" -> "Login handlers" where we left 2 nodes empty < friends > and < blocks >. Now we need to populate those nodes withdata. Below is the full profile xml for authorized user:

<login result="OK"> 
<userData>
  <id>2010</id>
  <name><![CDATA[David]]></name>
  <gender>male</gender>
  <location>UK</location>
  <age>23</age>
  <photo><![CDATA[www.domain.com/photos/david_big.png]]></photo>
  <thumbnail><![CDATA[www.domain.com//photos/david_small.png]]></thumbnail>
  <details>Hello :) I am David</details>
  <level>regular</level>
  <profileUrl>http://yourdomain/profile/David</profileUrl> 
</userData>
<friends>

   <friend>
      <id>1111</id>
     <name><![CDATA[Tom]]></name>
     <gender>male</gender>
     <location>UK</location>
     <age>28</age>
     <photo><![CDATA[www.domain.com/photos/david_big.png]]></photo>
     <thumbnail><![CDATA[www.domain.com//photos/david_small.png]]></thumbnail>
     <details>Hello :) I am Tom</details>
     <level>1</level>
    </friend>

 </friends>

<blocks> 
<block>

     <id>2222</id>
     <name><![CDATA[Paul]]></name>
     <gender>male</gender>
     <location>US</location>
     <age>25</age>
     <photo><![CDATA[www.domain.com/photos/david_big.png]]></photo>
     <thumbnail><![CDATA[www.domain.com//photos/david_small.png]]></thumbnail>
     <details>Hello :) I am Paul</details>
     <level>1</level>

</block>

</blocks> 

</login>