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 with data. Below is the full profile xml for authorized user:

<login result="OK"> 
  <location>London, UK</location>
  <details>Hello :) I am David</details>

  <friend id="1111" name="Tom" thumbnail="http://yourdomain/photos/tom_small.png"/>

  <block id="2222" name="Paul" thumbnail="http://yourdomain/photos/paul_small.png"/>