Reputation: 5212
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
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
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