Alex K
Alex K

Reputation: 5212

xmpp and facebook, cant get clear list of online users

I using this code to connect to facebook chat. When I try to retrieve list of online users instead of user name I get negative number for example: [email protected]

How can I get the original (Letters) user name?

Upvotes: 0

Views: 1159

Answers (2)

anurodhp
anurodhp

Reputation: 356

After you request the roster, iterate through all the elements and send a vcard request for each person. You will get a response with the full name and icon

<iq 
    id='v3'
    to='[email protected]'
    type='get'>
  <vCard xmlns='vcard-temp'/>
</iq>

Upvotes: 0

Abhinav Singh
Abhinav Singh

Reputation: 2651

You need to query for user vcard-temp and that shall give you all the display information you need about [email protected]

Upvotes: 1

Related Questions