Bug 271581 - XMPP is no longer supported by Facebook chat
Summary: XMPP is no longer supported by Facebook chat
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: Jabber Plugin (show other bugs)
Version: 1.0.80
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-23 21:20 UTC by Tanner
Modified: 2013-05-19 18:05 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tanner 2011-04-23 21:20:10 UTC
Version:           1.0.80 (using KDE 4.6.2) 
OS:                Linux

Trying to connect to chat.facebook.com via the jabber plugin (as Facebook states this as being the official method to use Facebook chat from an IM client.). Trying to connect results in the error:

Kopete: Connection problem with Jabber server chat.facebook.com

There was a negotiation error: Unsupported protocol version.
XMPP 1.0 is required.


Reproducible: Always

Steps to Reproduce:
Add a new account, set it to Jabber, type your Facebook username (can be found under Facebook's Account settings), then type @chat.facebook.com after your username. Switch to the next tab and set the server to chat.facebook.com. This works on an older version of Adium for Mac OS X Tiger.

Actual Results:  
The error explained above.

Expected Results:  
Should have connected to Facebook chat and displayed everyone online in the contacts list.

OS: Linux (i686) release 2.6.38-8-generic
Compiler: cc
Kubuntu 11.04 Beta 2
Comment 1 Antonios Pazarlis 2011-05-26 16:42:04 UTC
I can confirm this bug, always reproducible as following the steps described by Tanner.
Comment 2 Antonios Pazarlis 2011-05-26 16:44:12 UTC
(In reply to comment #1)
> I can confirm this bug, always reproducible as following the steps described by
> Tanner.

forgot to mention that i'm using version 1.0.80 too with kde 4.6.3 in opensuse 11.4.
Comment 3 Dj YB 2011-05-27 18:41:45 UTC
same here
got it to work fine with pidgin but fails with kopete

Kopete 1.0.80
KDE 4.6.3
fc14
Comment 4 Leo 2011-06-03 19:46:43 UTC
Same for me :(

$ kopete -version
Qt: 4.7.2
Piattaforma di sviluppo KDE: 4.6.2 (4.6.2)
Kopete: 1.0.80
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 11.04
Release:        11.04
Codename:       natty
Comment 5 Bart 2011-07-09 20:12:21 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 Bart 2011-07-09 20:13:22 UTC
Same over here:


Qt: 4.7.3
KDE Development Platform: 4.6.90 (4.7 RC1)
Kopete: 1.0.80


lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu oneiric (development branch)
Release:        11.10
Codename:       oneiric
Comment 7 Alejandro Lorenzo 2011-08-20 22:59:05 UTC
While testing KDE Release 4.7 compiled from sources i stumbled into this.

However, i have side by side Debian package version and compiled from source, and i have to say that having both equal XMPP configuration, the one coming from debian works, and the one coming from source does not.

Maybe some patch in debian tree ?
Comment 8 Alejandro Lorenzo 2011-08-20 23:28:26 UTC
I've look at patches applied in debian and nothings seems responsible...

Also, i've checked the XML console for both versions. 

Here the instance that works:
-------------------------------

<?xml version="1.0"?>

<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="chat.facebook.com">

<?xml version="1.0"?><stream:stream id="A8F32820" from="chat.facebook.com" version="1.0" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" 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>DIGEST-MD5</mechanism>
</mechanisms>
</stream:features>

<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
---------------------------------------------------------
And hereafter the one that does not:

------------------------------
<?xml version="1.0"?>

<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="chat.facebook.com">

<?xml version="1.0"?><stream:stream id="12FECAB9" from="chat.facebook.com" version="1.0" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en">

<iq type="get" to="chat.facebook.com" id="auth_1">
<query xmlns="jabber:iq:auth">
<username>[EDITED]</username>
</query>
</iq>

<stream:error>
<unsupported-version xmlns="urn:ietf:params:xml:ns:xmpp-streams"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-streams" xml:lang="">XMPP 1.0 is required</text>
</stream:error>


--------------

It seems to me that kopete is failing to comply with the jabber specification which states that upon a stream version="1.0" a client should use STARTTLS to change to chiper channel....

Oddly, this was reported as bug #112213 and fixed back in the release cycle, but for some reason i am hittin it again with release 4.7.0 compiled from source.

Any ideas? Any test i could run to track this ?
Comment 9 Alejandro Lorenzo 2011-08-20 23:30:22 UTC
By the way, the "works" is from kopete from KDE 4.6.5 as released by debian in its package 4.6.5-2

Both are running on top of System Qt version 4.7.3
Comment 10 Mark Fraser 2012-01-10 15:40:44 UTC
I've had no problems connecting to Facebook chat with Kopete until today. Now I see the error "unsupported protocol version  xmpp 1.0" or "there was a conflict in the information received".
Comment 11 Alejandro Lorenzo 2012-01-11 09:36:35 UTC
Uhm... forgot to update you guys in this one.... i am now running 4.7.3 compiled FROM sources and this bug simply went away.

As today, i can connect to Facebook XMPP service just fine.

If i recall correctly, the problem was in some TLS plugin for Qt that was not being used because of my particular setup.
Comment 12 Pali Rohár 2013-05-19 10:21:08 UTC
I updated core xmpp libiris library in kopete svn tree. Please try kopete version from svn if this problem is fixed now. Btw, Kopete (in svn) now has same version of xmpp library as PSI jabber client.
Comment 13 Gabriele Tozzi 2013-05-19 17:13:12 UTC
It looks like lastest SVN solved the problem (at least for me). Thank you.
Comment 14 Pali Rohár 2013-05-19 18:05:03 UTC
Ok, closing this bug as fixed. Fix will be part of new version of kopete released together with KDE 4.11.