Author Topic: Facebook Jabber connection  (Read 4377 times)

0 Members and 1 Guest are viewing this topic.

Offline newsjunkie247

  • Newbie
  • *
  • Posts: 12
Facebook Jabber connection
« on: 26 11 2015, 00:16:24 »
I had been using both the Facebook plugin and the Facebook Jabber connection because that was the only way I could get autoaway messages to work for Facebook. I know that technically Facebook said it was discontinuing Jabber support months ago, but it still had been working up until today. Suddenly today it no longer works and it seems to have to do with the privacy list function? Is there any way to get this to work again (I don't need the block/privacy list function).
Here is the connection log:
Quote
19:09:29 1BEE0] [JABBER_2] SetAwayMsg called, wParam=40072 lParam=Yep, I'm here.
[19:09:29 1BEE0] [JABBER_2] PS_SETSTATUS(40072)
[19:09:29 1BEE0] [JABBER_2] SetAwayMsg called, wParam=40072 lParam=Yep, I'm here.
[19:09:29 1D28C] [JABBER_2] Thread started: type=0
[19:09:29 1D28C] [JABBER_2] _xmpp-client._tcp.chat.facebook.com resolved to chat.facebook.com:5222
[19:09:29 1D28C] [JABBER_2] Connection request to chat.facebook.com:5222 (Flags 0)....
[19:09:29 1D28C] [JABBER_2] (000000000475C7A8) Connecting to server chat.facebook.com:5222....
[19:09:29 1D28C] [JABBER_2] (000000000475C7A8) Connecting to ip [2a03:2880:21:f05:face:b00c:0:133]:5222 ....
[19:09:29 1D28C] [JABBER_2] (1640) Connected to chat.facebook.com:5222
[19:09:29 1D28C] [JABBER_2] Thread type=0 server='chat.facebook.com' port='5222'
[19:09:29 1D28C] [JABBER_2] Stream is initializing after connect
[19:09:29 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client" to="chat.facebook.com" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" version="1.0">
[19:09:29 1D28C] [JABBER_2] Entering main recv loop
[19:09:29 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<?xml version='1.0' ?><stream:stream from='chat.facebook.com' id='1' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>X-FACEBOOK-PLATFORM</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
[19:09:29 1D28C] [JABBER_2] recvResult = 389
[19:09:29 1D28C] [JABBER_2] bytesParsed = 167
[19:09:29 1D28C] [JABBER_2] bytesParsed = 222
[19:09:29 1D28C] [JABBER_2] Requesting TLS
[19:09:29 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
[19:09:29 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
[19:09:29 1D28C] [JABBER_2] recvResult = 50
[19:09:29 1D28C] [JABBER_2] bytesParsed = 50
[19:09:29 1D28C] [JABBER_2] Starting TLS...
[19:09:29 1D28C] [JABBER_2] (1640 chat.facebook.com) Starting SSL negotiation
[19:09:30 1D28C] [JABBER_2] (1640 chat.facebook.com) SSL negotiation successful
[19:09:30 1D28C] [JABBER_2] Stream will be initialized after successful StartTLS
[19:09:30 1D28C] [JABBER_2] Stream is initializing after successful StartTLS
[19:09:30 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client" to="chat.facebook.com" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" version="1.0">
[19:09:30 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<?xml version='1.0' ?><stream:stream from='chat.facebook.com' id='1' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>X-FACEBOOK-PLATFORM</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
[19:09:30 1D28C] [JABBER_2] recvResult = 338
[19:09:30 1D28C] [JABBER_2] bytesParsed = 167
[19:09:30 1D28C] [JABBER_2] bytesParsed = 171
[19:09:30 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">AHRldHJpc2FuZGEucG90dGVyAG5lYnVsYWU=</auth>
[19:09:31 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<
[19:09:31 1D28C] [JABBER_2] recvResult = 1
[19:09:31 1D28C] [JABBER_2] bytesParsed = 0
[19:09:31 1D28C] [JABBER_2] Unknown state: bytesParsed=0, datalen=1, jabberNetworkBufferSize=2048
[19:09:31 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
[19:09:31 1D28C] [JABBER_2] recvResult = 50
[19:09:31 1D28C] [JABBER_2] bytesParsed = 51
[19:09:31 1D28C] [JABBER_2] Success: Logged-in.
[19:09:31 1D28C] [JABBER_2] Stream will be initialized after successful sasl
[19:09:31 1D28C] [JABBER_2] Stream is initializing after successful sasl
[19:09:31 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client" to="chat.facebook.com" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en" version="1.0">
[19:09:31 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<
[19:09:31 1D28C] [JABBER_2] recvResult = 1
[19:09:31 1D28C] [JABBER_2] bytesParsed = 0
[19:09:31 1D28C] [JABBER_2] Unknown state: bytesParsed=0, datalen=1, jabberNetworkBufferSize=2048
[19:09:31 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
?xml version='1.0' ?><stream:stream from='chat.facebook.com' id='1' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en'><stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>
[19:09:31 1D28C] [JABBER_2] recvResult = 303
[19:09:31 1D28C] [JABBER_2] bytesParsed = 167
[19:09:31 1D28C] [JABBER_2] bytesParsed = 137
[19:09:31 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="set" id="mir_25"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Miranda</resource></bind></iq>
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<
[19:09:32 1D28C] [JABBER_2] recvResult = 1
[19:09:32 1D28C] [JABBER_2] bytesParsed = 0
[19:09:32 1D28C] [JABBER_2] Unknown state: bytesParsed=0, datalen=1, jabberNetworkBufferSize=2048
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
iq from='-500137509@chat.facebook.com' id='mir_25' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>tetrisanda.potter@chat.facebook.com/Miranda</jid></bind></iq>
[19:09:32 1D28C] [JABBER_2] recvResult = 178
[19:09:32 1D28C] [JABBER_2] bytesParsed = 179
[19:09:32 1D28C] [JABBER_2] Result Bind: tetrisanda.potter@chat.facebook.com/Miranda confirmed
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="set" id="mir_26"><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></iq>
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<
[19:09:32 1D28C] [JABBER_2] recvResult = 1
[19:09:32 1D28C] [JABBER_2] bytesParsed = 0
[19:09:32 1D28C] [JABBER_2] Unknown state: bytesParsed=0, datalen=1, jabberNetworkBufferSize=2048
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
iq from='-500137509@chat.facebook.com' id='mir_26' type='result'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
[19:09:32 1D28C] [JABBER_2] recvResult = 124
[19:09:32 1D28C] [JABBER_2] bytesParsed = 125
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="get" id="mir_27"><query xmlns="jabber:iq:private"><roster xmlns="roster:delimiter"/></query></iq>
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="get" id="mir_28"><query xmlns="jabber:iq:private"><storage xmlns="http://miranda-ng.org/storage#notes"/></query></iq>
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="get" id="mir_29"><query xmlns="jabber:iq:private"><storage xmlns="storage:bookmarks"/></query></iq>
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="get" to="chat.facebook.com" id="mir_30"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="get" id="mir_31"><query xmlns="jabber:iq:privacy"/></iq>
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<
[19:09:32 1D28C] [JABBER_2] recvResult = 1
[19:09:32 1D28C] [JABBER_2] bytesParsed = 0
[19:09:32 1D28C] [JABBER_2] Unknown state: bytesParsed=0, datalen=1, jabberNetworkBufferSize=2048
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
iq from='chat.facebook.com' id='mir_30' type='result'><query xmlns='http://jabber.org/protocol/disco#info'><identity category='server' type='Facebook XMPP'/><feature var='http://jabber.org/protocol/commands'/><feature var='http://jabber.org/protocol/chatstates'/><feature var='vcard-temp'/></query></iq>
[19:09:32 1D28C] [JABBER_2] recvResult = 303
[19:09:32 1D28C] [JABBER_2] bytesParsed = 304
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
<
[19:09:32 1D28C] [JABBER_2] recvResult = 1
[19:09:32 1D28C] [JABBER_2] bytesParsed = 0
[19:09:32 1D28C] [JABBER_2] Unknown state: bytesParsed=0, datalen=1, jabberNetworkBufferSize=2048
[19:09:32 1D28C] [JABBER_2] (000000000475C7A8:1640) Data received
iq id='mir_31' type='error'><query xmlns='jabber:iq:privacy'/><error code='501' type='cancel'><feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
[19:09:32 1D28C] [JABBER_2] recvResult = 177
[19:09:32 1D28C] [JABBER_2] bytesParsed = 178
[19:10:02 1D28C] SSL Server signaled SSL Shutdown
[19:10:02 1D28C] [JABBER_2] Connection closed gracefully
[19:10:02 1D28C] [JABBER_2] recvResult = 0
[19:10:02 1D28C] [JABBER_2] Expiring iq id 29, sent to server
[19:10:02 1D28C] [JABBER_2] <iq/> iqIdGetBookmarks
[19:10:02 1D28C] [JABBER_2] Expiring iq id 28, sent to server
[19:10:02 1D28C] [JABBER_2] Expiring iq id 27, sent to server
[19:10:02 1D28C] [JABBER_2] (000000000475C7A8:1640) Data sent
<iq type="get" id="mir_32"><query xmlns="jabber:iq:roster"/></iq>
[19:10:02 1D28C] [JABBER_2] Expiring iq id 32, sent to server
[19:10:02 1D28C] [JABBER_2] <iq/> iqIdGetRoster
[19:10:02 1D28C] [JABBER_2] Thread ended: type=0 server='chat.facebook.com'
[19:10:02 1D28C] [JABBER_2] (000000000475C7A8:1640) Connection closed internal
[19:10:02 1D28C] [JABBER_2] (000000000475C7A8:4294967295) Connection closed
[19:10:02 1D28C] [JABBER_2] Exiting ServerThread
 

Offline Robyer

Re: Facebook Jabber connection
« Reply #1 on: 26 11 2015, 06:48:46 »
because that was the only way I could get autoaway messages to work for Facebook.
I can't help you with Jabber, but could you explain me this problem further? What does it mean?
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline newsjunkie247

  • Newbie
  • *
  • Posts: 12
Re: Facebook Jabber connection
« Reply #2 on: 26 11 2015, 07:01:02 »
I can't help you with Jabber, but could you explain me this problem further? What does it mean?

I've actually got it to work in the mean time with Facebook RM, but it's not as straightforward as it could be. I'm using New AutoAway system and Autoaway, and I think the tricky part is that it lacks an "away" status so when it's set to the idle command the autoreply wouldn't automatically go on since it only has the invisible status, and I had to figure out out how to set each protocol individually. It's a little hard to explain, but I've figured it out I think, but it could be simpler, and for a long time it somehow was easier to use the jabber protocol since it had more different statuses, but that seems to have totally stopped now.
 

Offline Robyer

Re: Facebook Jabber connection
« Reply #3 on: 12 12 2015, 08:24:10 »
newsjunkie247, allright. Early Christmass present for you ;)

I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline newsjunkie247

  • Newbie
  • *
  • Posts: 12
Re: Facebook Jabber connection
« Reply #4 on: 06 01 2016, 02:20:59 »
Thank you for this. Another Facebook question: do you know if Facebook has stopped transmitting "on the phone" information for contacts? It suddenly stopped showing up for me today.
 

Offline newsjunkie247

  • Newbie
  • *
  • Posts: 12
Re: Facebook Jabber connection
« Reply #5 on: 06 01 2016, 05:54:23 »
Or alternately, with"FetchMobile" enabled",  is there a way to map "Facebook (other)" to "Facebook (mobile)" for the purposes of the status icon? 
 

Offline Robyer

Re: Facebook Jabber connection
« Reply #6 on: 06 01 2016, 08:29:25 »
newsjunkie247, Facebook removed extra info which contained client (web/other/mobile/messenger) and now I'm getting only some list of "mobile friends" which can't be taken seriously as it seems it marks almost everyone as "on mobile" who somewhere in the past used mobile phone, or something like that.
That's why I stopped using the "on the phone" status completely. You can still set "FetchMobile" to some value, but it doesn't show people correctly... I don't recommend using it.
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.