GNOME Bugzilla – Bug 747623
Remove Facebook chat using Jabber
Last modified: 2017-02-03 21:06:30 UTC
In bug 746100 we stopped picking up Facebook accounts from GOA because Facebook has dropped support for XMPP in version 2.0 of the Graph API. We should also not allow people to add Facebook accounts directly in empathy.
Created attachment 301291 [details] [review] protocol, utils: Remove Facebook chat using Jabber
Facebook chat seems to still work here. Do you know when they are actually shutting it down?
(In reply to Guillaume Desmottes from comment #2) > Facebook chat seems to still work here. Do you know when they are actually > shutting it down? 30th April, 2015 Source: https://developers.facebook.com/docs/apps/changelog
--- Facebook Graph API Update - Empathy Chat --- The solution maybe easy and isn't XMPP related. Please check that we are doing GET requests from to the correct location at facebook. Empathy has some code that creates a JSON object and then sends a GET request to facebook to view the messages? NEW FACEBOOK API: https://developers.facebook.com/docs/graph-api/reference/v2.4/conversation --- NEW FACEBOOK API 2.4 --- GET /v2.4/{conversation-id} HTTP/1.1 Host: graph.facebook.com --- OLD FACEBOOK API 1.0 --- GET /v1.0/{conversation-id} HTTP/1.1 Host: graph.facebook.com --- Error Message --- (we may need to update the GET request dir to /v2.4/ to get empathy to work) Shows Disconnected - Authentication failed Go online to edit your personal information --- RELATED ISSUES --- https://bugzilla.gnome.org/show_bug.cgi?id=746102 https://bugzilla.gnome.org/show_bug.cgi?id=747623 https://bugzilla.gnome.org/show_bug.cgi?id=746100
(In reply to Asher from comment #4) > --- Facebook Graph API Update - Empathy Chat --- > > The solution maybe easy and isn't XMPP related. Please check that we are > doing GET requests from to the correct location at facebook. Empathy has > some code that creates a JSON object and then sends a GET request to > facebook to view the messages? If a new instant message protocol / API, other than XMPP, is to be used then we need to implement it as a telepathy connection manager. Then we can think of using it from empathy. > NEW FACEBOOK API: > https://developers.facebook.com/docs/graph-api/reference/v2.4/conversation It says "you can't publish using this edge". How does one send a message? In any case, unless someone implements this new protocol / API (assuming one exists) we can not claim to support Facebook.
Facebook: Simple Authentication and Security Layer (SASL) Mechanisms ===================================================================== empathy/libempathy/empathy-sasl-mechanisms.c ============================================= response_string = g_string_new ("v=1.0&call_id=0"); // debug v=1.0 vs v=2.4 g_string_append (response_string, "&access_token="); g_string_append_uri_escaped (response_string, data->access_token, NULL, TRUE); g_string_append (response_string, "&api_key="); g_string_append_uri_escaped (response_string, data->client_id, NULL, TRUE); g_string_append (response_string, "&method="); g_string_append_uri_escaped (response_string, g_hash_table_lookup (h, "method"), NULL, TRUE); g_string_append (response_string, "&nonce="); g_string_append_uri_escaped (response_string, g_hash_table_lookup (h, "nonce"), NULL, TRUE); response_array = g_array_new (FALSE, FALSE, sizeof (gchar)); g_array_append_vals (response_array, response_string->str, response_string->len); tp_cli_channel_interface_sasl_authentication_call_respond (data->channel, -1, response_array, generic_cb, g_object_ref (result), g_object_unref, NULL); I'm missing some gnome-common and I wanted to rebuild empathy with a new response_string = g_string_new ("v=2.4&call_id=0"); // not v=1.0 Perhaps Xavier has some ideas on this? :)
(In reply to Debarshi Ray from comment #3) > (In reply to Guillaume Desmottes from comment #2) > > Facebook chat seems to still work here. Do you know when they are actually > > shutting it down? > > 30th April, 2015 > > Source: https://developers.facebook.com/docs/apps/changelog Facebook through xmpp still works here. I doubt it will be completely removed (at least not globally).
So what's the status on this?
Created attachment 344882 [details] [review] Remove Facebook XMPP support The service is unavailable since end of 2015. This patch removes Facebook XMPP support completely, and allows to use purple-facebook instead.
Created attachment 344883 [details] [review] Remove Facebook XMPP support v2 Remove unused jid_suffix variable.
Looks not insane. If anyone wants to take over tpaw maintainership, please please do. (Maybe Rishi, since you depend on it...?)