Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
Sven #1
Member since Mar 2011 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Logging in to Facebook without sending the online status
Hi, i am currently trying to connect to Facebook with an app i'm writing. The tricky part is that i want to get the roster but i don't want to go online. Do you know of any way that i can achieve that?

thanks,
sven
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
try to set AutoPresence to false.

Alex
Avatar
Sven #3
Member since Mar 2011 · 3 posts
Group memberships: Members
Show profile · Link to this post
I tried that, but that way i can't get the roster. Is there a way to get the roster and not go online?

thanks for the quick reply,
sven
Avatar
Alex #4
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
MatriX requests the roster when AutoRoster is true. And it requests the roster before sending the online status.
Please post your Xml log.

Alex
Avatar
Sven #5
Member since Mar 2011 · 3 posts
Group memberships: Members
Show profile · Link to this post
hi this is when i try to go invisible:

<stream:stream to='chat.facebook.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" id="A4A270A9" version="1.0" from="chat.facebook.com" >
    <presence type="invisible" />
    <stream:features xmlns:stream="http://etherx.jabber.org/streams">
      <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
      <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
        <mechanism>X-FACEBOOK-PLATFORM</mechanism>
        <mechanism>DIGEST-MD5</mechanism>
      </mechanisms>
    </stream:features>
    <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
    <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
    <stream:stream to='chat.facebook.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
      <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" id="4CB01A45" version="1.0" from="chat.facebook.com" >
        <presence type="invisible" />
        <stream:features xmlns:stream="http://etherx.jabber.org/streams">
          <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
            <mechanism>X-FACEBOOK-PLATFORM</mechanism>
            <mechanism>DIGEST-MD5</mechanism>
          </mechanisms>
        </stream:features>
        <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="X-FACEBOOK-PLATFORM" />
        <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dmVyc2lvbj0xJm1ldGhvZD1hdXRoLnhtcHBfbG9naW4mbm9uY2U9NDA2MTUzOTg0MjlBNjc5M0I2NDUzNjc2M0MwNDFFRkQ=</challenge>
        <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">bWV0aG9kPWF1dGgueG1wcF9sb2dpbiZhcGlfa2V5PTg3NGZmNDg0YjRlMDVmNDY0NjQ5NTQ3YjE4NzE1NTA1JnNlc3Npb25fa2V5PWIxZDkwYWVmMTgzNDVjNWY1OWYxZTM4Ni0xMDAwMDAzMDQ5NDA2NjAmY2FsbF9pZD05MzY2MjYxMSZzaWc9YjkxZDllMWI1YWY4ZWVmYzFjNmQyZWM3YmJjOTEwMjkmdj0xLjAmbm9uY2U9NDA2MTUzOTg0MjlBNjc5M0I2NDUzNjc2M0MwNDFFRkQ=</response>
        <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
        <stream:stream to='chat.facebook.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
          <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" id="1B739160" version="1.0" from="chat.facebook.com" >
            <presence type="invisible" />
            <stream:features xmlns:stream="http://etherx.jabber.org/streams">
              <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
              <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
            </stream:features>
            <iq id="agsXMPP_1" type="set" to="chat.facebook.com">
              <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
            </iq>
            <iq xmlns="jabber:client" id="agsXMPP_1" type="result">
              <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
                <jid>-XXXXXXXX@chat.facebook.com/52c9b76a_49FC828C97129</jid>
              </bind>
            </iq>
            <presence type="invisible" />
            <iq id="agsXMPP_2" type="set" to="chat.facebook.com">
              <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
            </iq>
            <iq xmlns="jabber:client" id="agsXMPP_2" type="result" from="chat.facebook.com">
              <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
            </iq>
            <presence type="invisible" />
          </stream:stream>
        </stream:stream>


and this is when i try to use unavailable


<stream:stream to='chat.facebook.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
  <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" id="3AA9CE93" version="1.0" from="chat.facebook.com" >
    <presence type="unavilable" />
    <stream:features xmlns:stream="http://etherx.jabber.org/streams">
      <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
      <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
        <mechanism>X-FACEBOOK-PLATFORM</mechanism>
        <mechanism>DIGEST-MD5</mechanism>
      </mechanisms>
    </stream:features>
    <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
    <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
    <stream:stream to='chat.facebook.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
      <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" id="49F9B04C" version="1.0" from="chat.facebook.com" >
        <presence type="unavilable" />
        <stream:features xmlns:stream="http://etherx.jabber.org/streams">
          <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
            <mechanism>X-FACEBOOK-PLATFORM</mechanism>
            <mechanism>DIGEST-MD5</mechanism>
          </mechanisms>
        </stream:features>
        <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="X-FACEBOOK-PLATFORM" />
        <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dmVyc2lvbj0xJm1ldGhvZD1hdXRoLnhtcHBfbG9naW4mbm9uY2U9OUVCM0EzQ0M2MDAwMTFGNTZDRUU0NUNDMkMzMEFBRkI=</challenge>
        <response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">bWV0aG9kPWF1dGgueG1wcF9sb2dpbiZhcGlfa2V5PTg3NGZmNDg0YjRlMDVmNDY0NjQ5NTQ3YjE4NzE1NTA1JnNlc3Npb25fa2V5PWIxZDkwYWVmMTgzNDVjNWY1OWYxZTM4Ni0xMDAwMDAzMDQ5NDA2NjAmY2FsbF9pZD05MzY2MjYxMSZzaWc9M2Y0NDUzMzA0NjgwYmY4NzI5MWVmZWQxZjgyZDQwMDImdj0xLjAmbm9uY2U9OUVCM0EzQ0M2MDAwMTFGNTZDRUU0NUNDMkMzMEFBRkI=</response>
        <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
        <stream:stream to='chat.facebook.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
          <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" id="63D24917" version="1.0" from="chat.facebook.com" >
            <presence type="unavilable" />
            <stream:features xmlns:stream="http://etherx.jabber.org/streams">
              <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
              <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
            </stream:features>
            <iq id="agsXMPP_1" type="set" to="chat.facebook.com">
              <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
            </iq>
            <iq xmlns="jabber:client" id="agsXMPP_1" type="result">
              <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
                <jid>-XXXXXXXX@chat.facebook.com/54201567_49FC833337064</jid>
              </bind>
            </iq>
            <presence type="unavilable" />
            <iq id="agsXMPP_2" type="set" to="chat.facebook.com">
              <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
            </iq>
            <iq xmlns="jabber:client" id="agsXMPP_2" type="result" from="chat.facebook.com">
              <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
            </iq>
            <presence type="unavilable" />
          </stream:stream>
        </stream:stream>


thanks,
sven
Avatar
Alex #6
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this log is from agsXMPP, not from MatriX. You should not send any presence at all, this should still receive the roster.

Aalex
Avatar
tashimirmont #7
Member since Jan 2014 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Autopresence... where?
Sven: I could not find autopresence written anywhere in the configuration!
Could you please tell us where it sharply is?
Avatar
Alex #8
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
look at xmppClient.AutoPresence. Its true by default.
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