Reimplement Facebook Chat not using XMPP

NEW
Unassigned

Status

defect
--
major
4 years ago
26 days ago

People

(Reporter: pedrogfrancisco, Unassigned)

Tracking

trunk
x86
Windows 8.1

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 1 obsolete attachment)

(Reporter)

Description

4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150310030235

Steps to reproduce:

I want to not have to use Facebook web interface after April 31, 2015.
The XMPP server is going to be disabled after that date [1]

[1] https://developers.facebook.com/docs/chat


Actual results:

I found an implementation of chat using the newer API, via web calls, at https://github.com/Schmavery/facebook-chat-api .


Expected results:

I would like someone more knowledgeable than me to evaluate and, if possible, integrate, the new chat API before April 31.
Not sure why I never saw this, but yes...we should plan to stop using the XMPP interface. It currently has still been working for me, however.

My current plan is to switch to the MQTT transport that the Facebook Messenger apps work. This uses MQTT over TCP with JSON/Thrift messaging. libpurple did an implementation of this for GSoC last year, we could either include their C++ code or rewrite it into JavaScript (which would allow use in Thunderbird).
Status: UNCONFIRMED → NEW
Component: Untriaged → XMPP
Ever confirmed: true
Product: Thunderbird → Chat Core
Version: 31 → trunk
Summary: Evaluate Facebook's XMPP server alternative → Stop using XMPP to connect to Facebook

Comment 3

3 years ago
Just so you guys and gals know, the Facebook chat is now broken in Thunderbird, so this issue should be patched ASAP.
(Reporter)

Comment 4

3 years ago
I think it would be best if you opened another bug for that and then linking it here.

Fixing Facebook brokenness may involve other solution than migrating to the new API.
It's really all the same bug at this point. XMPP has stopped working, we need to do something else.
Duplicate of this bug: 1235453
FYI we put up a blog post about this if people are interested in more information: http://blog.instantbird.org/2016/01/facebook-chat-issues/
Duplicate of this bug: 1244218

Updated

3 years ago
Depends on: 1236133
Summary: Stop using XMPP to connect to Facebook → Reimplement Facebook Chat not using XMPP
I've started some work on this and have gotten authentication working.
Assignee: nobody → clokep
Severity: normal → major
Status: NEW → ASSIGNED

Updated

3 years ago
Blocks: 1235331
No longer blocks: 1235331
Posted patch WIP v1 (obsolete) — Splinter Review
I have a WIP that downloads the contact list. I wanted to get some feedback on my use of promises from Nihanth.
Attachment #8717599 - Flags: feedback?(nhnt11)
Posted patch WIP v2Splinter Review
This now connects to MQTT and is able to send/parse messages.
Attachment #8717599 - Attachment is obsolete: true
Attachment #8717599 - Flags: feedback?(nhnt11)

Updated

3 years ago
Component: XMPP → General
Assignee: clokep → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.