I'm actually getting the same issue.
Connects to facebook fine using profanity on OSX, but doesn't work on Ubuntu 14.04 (logs below),
I'm thinking this must be something to do with libstrophe's usage of OpenSSL and the version of OpenSSL compiled against, since it appears to work in some environments but not others. It might also be related to other login issues/crashes we're seeing. I'm going to try to find some time to delve into the relevant libstrophe code.
19/08/2014 23:32:33: prof: INF: Connecting using account: facebook
19/08/2014 23:32:33: prof: INF: Connecting as
user.nam...@chat.facebook.com/profanity19/08/2014 23:32:33: xmpp: DBG: sock_connect to
chat.facebook.com:5222 returned 5
19/08/2014 23:32:33: xmpp: DBG: attempting to connect to
chat.facebook.com19/08/2014 23:32:33: xmpp: DBG: connection successful
19/08/2014 23:32:33: conn: DBG: SENT: <?xml version="1.0"?><stream:stream to="
chat.facebook.com" xml:lang="en" version="1.0" xmlns="jabber:client" xmlns:stream="
http://etherx.jabber.org/streams">
19/08/2014 23:32:33: xmpp: DBG: RECV: <stream:stream from='
chat.facebook.com' id='1' version='1.0' xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en'>
19/08/2014 23:32:33: xmpp: DBG: RECV: <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/08/2014 23:32:33: conn: DBG: SENT: <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
19/08/2014 23:32:33: xmpp: DBG: RECV: <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
19/08/2014 23:32:33: xmpp: DBG: handle proceedtls called for proceed
19/08/2014 23:32:33: xmpp: DBG: proceeding with TLS
19/08/2014 23:32:34: conn: DBG: SENT: <?xml version="1.0"?><stream:stream to="
chat.facebook.com" xml:lang="en" version="1.0" xmlns="jabber:client" xmlns:stream="
http://etherx.jabber.org/streams">
19/08/2014 23:32:34: xmpp: DBG: Unrecoverable TLS error, 1.19/08/2014 23:32:34: xmpp: DBG: Closing socket.
19/08/2014 23:32:34: prof: DBG: Connection handler: XMPP_CONN_DISCONNECT
19/08/2014 23:32:34: prof: DBG: Connection handler: Login failed
19/08/2014 23:32:34: prof: DBG: Connection handler: No reconnect timer
19/08/2014 23:32:34: prof: INF: Login failed