After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573194 - FacebookChat
FacebookChat
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
unspecified
Other All
: Normal enhancement
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2009-02-25 22:07 UTC by Paul Forget
Modified: 2010-02-11 21:54 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/facebook-573194 (20.91 KB, patch)
2010-02-11 16:02 UTC, Guillaume Desmottes
none Details | Review
Facebook widget in the accounts dialog (29.17 KB, image/jpeg)
2010-02-11 16:21 UTC, Guillaume Desmottes
  Details
Facebook widget in the accounts assistant (30.27 KB, image/jpeg)
2010-02-11 16:22 UTC, Guillaume Desmottes
  Details
New branch per Nick Richards' suggestions (21.23 KB, patch)
2010-02-11 17:28 UTC, Guillaume Desmottes
none Details | Review
new dialog widget (33.99 KB, image/jpeg)
2010-02-11 17:30 UTC, Guillaume Desmottes
  Details

Description Paul Forget 2009-02-25 22:07:16 UTC
Hi,

(sorry for my English, I speak French...)

I would like to use Empathy; I use Jabber, MSN, but Facebook too.  On Pidgin, there is a plugin for FacebookChat, it's great!  I know Facebook is bad... but MSN too, so why not?

Thx for your answer!  I hope to use Empathy, it's reliable

Bye
Comment 1 Pierre-Luc Beaudoin 2009-02-26 07:34:18 UTC
Thanks for taking the time to report this bug.
However, this application does not track its bugs in the GNOME Bugzilla. 

There is already a bug opened against Telepathy to have FacebookChat support: http://bugs.freedesktop.org/show_bug.cgi?id=17907 when that bug is closed, Empathy will gain FacebookChat automagically.

Thanks in advance!
Comment 2 Xavier Claessens 2009-02-26 09:07:48 UTC
This is not completely true, we still need a profile in empathy.
Comment 3 Paul Forget 2009-02-26 09:37:12 UTC
thanks, I switch to this post...
Comment 4 Paul Forget 2009-02-26 10:09:59 UTC
Hi, the problem is now Ok.
For people who are interrested:
1) You must have the certificate, so you can install the "deb" on Ubuntu for example... http://code.google.com/p/pidgin-facedbookchat/downloads/list and copy (when empathy is open) HOME/.purple/certificates/x509/tls_peers/login.facebook.com to /tmp/haze*/certificates/x509/tls_peers.

2) You must add someting to some files:
# Matej's extension
[Protocol bigbrownchunx-facebookim]
param-account=s required
param-password=s required
param-server=s
param-facebook_hide_self=true
param-facebook_set_status_through_pidgin=0
param-facebook_get_notifications=1
param-facebook_max_msg_retry=2
default-host=www.facebook.com
default-facebook_hide_self=true
default-facebook_set_status_through_pidgin=false
default-facebook_get_notifications=true
default-facebook_max_msg_retry=2

in /usr/share/telepathy/managers/haze.manager
and:
[Profile]
Manager=haze
Protocol=bigbrownchunx-facebookim
DisplayName=Facebook (Haze)
IconName = facebook
ConfigurationUI = haze
Capabilities = chat-p2p, supports-alias, supports-avatars, supports-roster
VCardDefault = 1
VCardField = X-FACEBOOK
SupportedPresences = hidden

in /usr/share/mission-control/profiles/bigbrownchunx-facebookim-haze.profile

And that's it! :)
Comment 5 Frederic Peters 2009-03-02 17:56:23 UTC
Xavier, Guillaume: could this be added to telepathy-haze and empathy?
Comment 6 Guillaume Desmottes 2009-03-02 18:03:24 UTC
As said on http://bugs.freedesktop.org/show_bug.cgi?id=17907  Haze needs some modifications before being able to work with FB.
Once it's done, we'll ship the profile in Empathy.
Comment 7 Guillaume Desmottes 2009-03-02 23:11:12 UTC
I added a profile and icons to this branch:
http://git.collabora.co.uk/?p=user/cassidy/empathy.git;a=shortlog;h=refs/heads/facebook
Comment 8 Guillaume Desmottes 2009-08-26 14:49:02 UTC
Latest version of Empathy doesn't use profiles anymore and Facebook chat works fine if Haze's manager file is removed.
The only missing bit is the icon which I added in this branch:
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/facebook
Comment 9 Guillaume Pascal 2010-02-10 20:02:55 UTC
If you can help you Facebook opened Chat system: http://www.facebook.com/sitetour/chat.php
Comment 10 William Jon McCann 2010-02-10 22:53:08 UTC
Turns out it is totally trivial to add facebook chat now.  Sweet!  However, it might be nice to have an easy alias for it (ala gtalk) in the account types list.  Especially since most people don't know what jabber is.
Comment 11 Vincent Untz 2010-02-11 09:07:15 UTC
Indeed, should be easy now.
Guillaume: can this be done by just tweaking empathy, or do we need to also play with some other telepathy bits?
Comment 12 Guillaume Desmottes 2010-02-11 10:28:44 UTC
Vincent: Empathy should be enough (you can actually connect using Empathy and Gabble). It's "just" a matter of adding a "profile" as the gtalk one.

I'll try to look at that today.
Comment 13 Omer Akram 2010-02-11 14:22:00 UTC
can this, by any change make its way into 2.30?
Comment 14 Guillaume Desmottes 2010-02-11 16:02:31 UTC
Created attachment 153543 [details] [review]
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/facebook-573194

 libempathy-gtk/empathy-account-widget-jabber.ui |  110 +++++++++++++++++++-
 libempathy-gtk/empathy-account-widget.c         |  131 ++++++++++++++++++++++-
 libempathy-gtk/empathy-protocol-chooser.c       |   46 +++++++-
 libempathy-gtk/empathy-protocol-chooser.h       |    4 +-
 src/empathy-account-assistant.c                 |   22 +++-
 src/empathy-accounts-dialog.c                   |   19 +++-
 6 files changed, 309 insertions(+), 23 deletions(-)
Comment 15 Guillaume Desmottes 2010-02-11 16:04:03 UTC
I have a working implementation which needs to be reviewed but it should be in for 2.30 for sure.

I implemented it in the exact same way as the gtalk profile is done. This is not great and lake generalisation but I don't want to start big refactoring at this point. Having proper preset/profile could be an interesting goal for 2.32.
Comment 16 Guillaume Desmottes 2010-02-11 16:21:52 UTC
Created attachment 153547 [details]
Facebook widget in the accounts dialog
Comment 17 Guillaume Desmottes 2010-02-11 16:22:25 UTC
Created attachment 153549 [details]
Facebook widget in the accounts assistant
Comment 18 Sjoerd Simons 2010-02-11 16:33:19 UTC
(In reply to comment #16)
> Created an attachment (id=153547) [details]
> Facebook widget in the accounts dialog

Big spacing between the protocol chooser and the login id looks somewhat ugly
Comment 19 Guillaume Desmottes 2010-02-11 16:52:12 UTC
(In reply to comment #18)
> (In reply to comment #16)
> > Created an attachment (id=153547) [details] [details]
> > Facebook widget in the accounts dialog
> 
> Big spacing between the protocol chooser and the login id looks somewhat ugly

That's not a Facebook specific issue. I opened bug #609664 about that.
Comment 20 Guillaume Desmottes 2010-02-11 17:28:23 UTC
Created attachment 153560 [details] [review]
New branch per Nick Richards' suggestions

 libempathy-gtk/empathy-account-widget-jabber.ui |  112 +++++++++++++++++++-
 libempathy-gtk/empathy-account-widget.c         |  134 ++++++++++++++++++++++-
 libempathy-gtk/empathy-protocol-chooser.c       |   46 +++++++-
 libempathy-gtk/empathy-protocol-chooser.h       |    4 +-
 src/empathy-account-assistant.c                 |   22 +++-
 src/empathy-accounts-dialog.c                   |   19 +++-
 6 files changed, 314 insertions(+), 23 deletions(-)
Comment 21 Guillaume Desmottes 2010-02-11 17:30:07 UTC
Created attachment 153561 [details]
new dialog widget
Comment 22 Guillaume Desmottes 2010-02-11 18:07:09 UTC
Reviewed by Xavier.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 23 Olav Vitters 2010-02-11 18:15:22 UTC
You're changing the UI while we're in UI freeze period, as per http://live.gnome.org/Schedule.

For UI freeze breaks you'll have to email release-team
Comment 24 Guillaume Desmottes 2010-02-11 19:15:09 UTC
(In reply to comment #23)
> You're changing the UI while we're in UI freeze period, as per
> http://live.gnome.org/Schedule.
> 
> For UI freeze breaks you'll have to email release-team

I got the approval of the RT on IRC and sent a email to the translation and doc team to notify them about the change.
Comment 25 Guillaume Pascal 2010-02-11 21:54:20 UTC
Under Aim, the tool he uses Facebook Connect to connect to this account, it might be easier to use

"After you sign into AIM, click the "Facebook Connect" button at the top of your buddy list to set up Facebook chat. When you are done your Facebook friends will be added to your buddy list. You can now chat with your friends who are using the Facebook site!"

http://beta.aol.com/projects.php?project=aimwin

http://developers.facebook.com/connect.php