Reimplement Facebook Chat not using XMPP

ASSIGNED
Assigned to

Status

Chat Core
General
--
major
ASSIGNED
2 years ago
2 months ago

People

(Reporter: pedrogfrancisco, Assigned: clokep)

Tracking

trunk
x86
Windows 8.1

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments, 1 obsolete attachment)

(Reporter)

Description

2 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.
(Assignee)

Comment 1

2 years ago
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
(Assignee)

Updated

2 years ago
Summary: Evaluate Facebook's XMPP server alternative → Stop using XMPP to connect to Facebook
(Assignee)

Comment 2

2 years ago
Created attachment 8675058 [details]
Conversation about libpurple implementation

The libpurple code is available at: https://hg.pidgin.im/soc/2015/jgeboski/facebook/file/6a0a79182ebc/libpurple/protocols/facebook

Comment 3

a year 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

a year 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.
(Assignee)

Comment 5

a year ago
It's really all the same bug at this point. XMPP has stopped working, we need to do something else.
(Assignee)

Updated

a year ago
Duplicate of this bug: 1235453
(Assignee)

Comment 7

a year ago
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/
(Assignee)

Updated

a year ago
Duplicate of this bug: 1244218

Updated

a year ago
Depends on: 1236133
(Assignee)

Updated

a year ago
Summary: Stop using XMPP to connect to Facebook → Reimplement Facebook Chat not using XMPP
(Assignee)

Comment 9

a year ago
I've started some work on this and have gotten authentication working.
Assignee: nobody → clokep
Severity: normal → major
Status: NEW → ASSIGNED
Blocks: 1235331
(Assignee)

Updated

a year ago
No longer blocks: 1235331
(Assignee)

Comment 10

a year ago
Created attachment 8717599 [details] [diff] [review]
WIP v1

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)
(Assignee)

Comment 11

a year ago
Created attachment 8725983 [details] [diff] [review]
WIP v2

This now connects to MQTT and is able to send/parse messages.
Attachment #8717599 - Attachment is obsolete: true
Attachment #8717599 - Flags: feedback?(nhnt11)

Updated

10 months ago
Component: XMPP → General
You need to log in before you can comment on or make changes to this bug.