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开发者_C百科 number for example: -1479115148@chat.facebook.com
How can I get the original (Letters) user name?
You need to query for user vcard-temp and that shall give you all the display information you need about -1479115148@chat.facebook.com
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='-1479115148@chat.facebook.com'
type='get'>
<vCard xmlns='vcard-temp'/>
</iq>
精彩评论