Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
zbang.yaniv #1
Member since Mar 2011 · 29 posts
Group memberships: Members
Show profile · Link to this post
Subject: Get MY own vcard photo hash from facebook
Hello,

For google talk, I get my presence, so I can extract my photo hash no problem.

For facebook chat, my own presence doesn't arrive.

How can I get my photo hash?

Thanks!
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
for your own photo normally you have to include the hash on your own in the presence.

Alex
Avatar
zbang.yaniv #3
Member since Mar 2011 · 29 posts
Group memberships: Members
Show profile · Link to this post
Sorry, I don't understand your reply;

Do you mean that I need to:
1) request my vcard once
2) keep the hash of the photo
3) each time I create the xmpp client, I will also send my presence with the hash code?

If this is the correct scenario, will it be cheaper (server-wise) to request for my vcard on each connect?

Thanks a lot
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by zbang.yaniv:
If this is the correct scenario, will it be cheaper (server-wise) to request for my vcard on each connect?

yes this is correct. When your users use only your XMPP client then receiving the vCard once is fine. When your users also use other XMPP sometimes where they could change the photo as well you have to request the vcard on every login. Otherwise you cannot know if the photo has been updated or not.

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:
Forum: MatriX RSS