vCard class incomplete and cannot get user photo

Hello,

I am using Smack API 3.2.1 and when y do the command

myvCard.load(myConn);

it returns a vcard, but incomplete.

I cannot get the facebook user photo:

in the debugger I see the raw incoming packet:

<iq from="-********@chat.facebook.com" to="-*********@chat.facebook.com/292f13ce_4A976F244369B" id="9mfRC-8" type="result"><vCard xmlns="vcard-temp"><FN>Marco Buzzoni</FN><PHOTO><TYPE>image/jpeg</TYPE><BINVAL>/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSk
cgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTUK/9sAQwACAQEBAQECAQEBAgICAgIEAwICAgIFBAQD
BAYFBgYGBQYGBgcJCAYHCQcGBggLCAkKCgoKCgYICwwLCgwJCgoK/9sAQwECAgICAgIFAwMFCg
cGBwoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoK/8
...
cyalbR3A88jE6Bxj8aKK4MT/u79Dowv8Zf4j9I/hd8KPha3g+31FvhroBuMRnzzo0G/p/e25r0
3QYYoI4YIIlRFi+VEXAH0FFFfPr4D2638Q+W/wDgrHrWs2Hg3StOsdWuobe71J0uoIZ2VJlCAh
XUHDAHsa/PDTgP+EuRsctp7Fj6nzG60UV9FlX+6r0PGxX8SXqdAGYDAY/nRRRXqLYyP//Z</BINVAL></PHOTO></vCard></iq>

But the packet I get is:

<iq id="9mfRC-8" to="-********@chat.facebook.com/292f13ce_4A976F244369B" from="-**********@chat.facebook.com" type="result">
  <vCard xmlns="vcard-temp">
    <FN>Marco Buzzoni</FN>
</vCard>
</iq>

There is no photo information!

Is there any way to get the photo information?

Is there any way to read the row xml IQ element, like in the debugger?
error.log.zip (785 Bytes)

I got a good feeling this is what you’re looking for: