Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
Avatar
sureshj #1
Member since Oct 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Facebook xmpp VCard problem
Hi I want to get profile picture of my own. So After login, I am sending below IQ packet and getting the below mentioned response but it does not contain any Picture details.

Can anyone please help me what is the reason.

Reguret:
<iq to='-100002643606171@chat.facebook.com' from='' id='v1111'  type='get' xmlns='jabber:client'><vCard xmlns='vcard-temp'/></iq>


Response:
<iq id="v1111" to="XXXXXX@chat.facebook.com/8hAKe3RdK1_51d153db_4AFBBB1DF508F" from="-100002643606171@chat.facebook.com" type="result"><vCard xmlns='vcard-temp'><FN>Req Lee</FN>
</vCard>
</iq>
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
for me it works fine. See the following log.
Some users reported this before. I have no idea why it does not work sometimes. Only Facebook will be able to answer this question. This must be a problem in their XMPP server.

  1. <iq to='xxx@chat.facebook.com' id='MX_33'  type='get' xmlns='jabber:client'>
  2.    <vCard xmlns='vcard-temp'/>
  3. </iq>
  4.  
  5. <iq from="xxx@chat.facebook.com" type="result" to="xxx@chat.facebook.com/Alex-TP_3eac5bb1_4AFBBD971F312" id="MX_33" >
  6.    <vCard xmlns="vcard-temp">
  7.       <FN>Alexander Gnauck</FN>
  8.       <PHOTO>
  9.          <TYPE>image/jpeg</TYPE>
  10.          <BINVAL>/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSk
  11. cgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTUK/9sAQwACAQEBAQECAQEBAgICAgIEAwICAgIFBAQD
  12. BAYFBgYGBQYGBgcJCAYHCQcGBggLCAkKCgoKCgYICwwLCgwJCgoK/9sAQwECAgICAgIFAwMFCg
  13. cGBwoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoK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EEiwi/8AiaK5ZPitbIgRrpFIGCpPT26UVh9Z
  42. xH8pvyQMzxYzTaWySsWDEqwY5BHmYx9K+YfhfHHq3xB+INvqiC5js5UNmlwN4gIa5I2A/d5VTx
  43. 6D0oorXJfhqeiNH/vNP1f5M+aPj7cXE/xUv5J53djFFlnYk/cFczZ/JqUTJwROuCPrRRX1FL+G
  44. vQ8TFf7xP1Z9e/sIMy6V42kViGGoW2GB5H/Hx/hXuySOn2MI5AaT5sHrz3/IUUV8zmn+8y+X6H
  45. oYL+GvmcVc3E4uZAJ3++f4j60UUVmbn//Z</BINVAL>
  46.       </PHOTO>
  47.    </vCard>
  48. </iq>
Avatar
sureshj #3
Member since Oct 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Alex,

Thanks for your reply.

I have some doubt on the access of the profile picture. So Can you please tell me are you doing anything for providing the access of the profile or profile picture at the time of login.

Which Auth mech you are using?

Tx
Suresh
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I do nothing special. Just login with username and password. Also works fine when I use the Psi client.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: