Bug 17907 - support for pidgin facebook plugin -- or tp-haze is not able to work with certificates
Summary: support for pidgin facebook plugin -- or tp-haze is not able to work with cer...
Status: RESOLVED DUPLICATE of bug 19018
Alias: None
Product: Telepathy
Classification: Unclassified
Component: haze (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL: http://code.google.com/p/pidgin-faceb...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-04 15:18 UTC by Jérémy Lal
Modified: 2017-06-03 13:02 UTC (History)
14 users (show)

See Also:
i915 platform:
i915 features:


Attachments
modified haze.manager file (4.42 KB, text/plain)
2008-12-04 05:34 UTC, Matej Cepl
Details
mission-control profile (272 bytes, text/plain)
2008-12-04 05:35 UTC, Matej Cepl
Details

Description Jérémy Lal 2008-10-04 15:18:15 UTC
Hi,
here are some changes to do for handling the pidgin facebook plugin. What follows has been tested against v1.36 of the plugin, and v0.2.1-1 of telepathy-haze on a debian unstable+experimental install.

in haze.manager add this : (please note get_notifications won't probably be of any use, since empathy doesn't provide notifications as in pidgin)

[Protocol bigbrownchunx-facebookim]
param-account=s required
param-password=s required
param-host=s
param-facebook_hide_self=b
param-facebook_set_status_through_pidgin=b
param-facebook_get_notifications=b
param-facebook_max_msg_retry=i
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


and add a file mission-control/profiles/bigbrownchunx-facebookim-haze.profile :

[Profile]
Manager=haze
Protocol=bigbrownchunx-facebookim
DisplayName=Facebook (Haze)
IconName = im-bigbrownchunx-facebookim
ConfigurationUI = haze
Capabilities = chat-p2p, supports-alias, supports-avatars, supports-roster
VCardDefault = 1
VCardField = X-FACEBOOK
SupportedPresences = hidden


icons are available here :
http://code.google.com/p/pidgin-facebookchat/downloads/list

of course they should be renamed and placed in correct folders.

Also note that it seems some distributions doesn't have the root certificate used for facebook's SSL (e.g. gentoo). In that case it won't connect.

Also that plugin hasn't proper localization yet.

Cheers
Comment 1 Chak Man Yeung 2008-11-25 23:23:01 UTC
(In reply to comment #0)
> Hi,
> here are some changes to do for handling the pidgin facebook plugin. What
> follows has been tested against v1.36 of the plugin, and v0.2.1-1 of
> telepathy-haze on a debian unstable+experimental install.
> 
> in haze.manager add this : (please note get_notifications won't probably be of
> any use, since empathy doesn't provide notifications as in pidgin)
> 
> [Protocol bigbrownchunx-facebookim]
> param-account=s required
> param-password=s required
> param-host=s
> param-facebook_hide_self=b
> param-facebook_set_status_through_pidgin=b
> param-facebook_get_notifications=b
> param-facebook_max_msg_retry=i
> 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
> 
> 
> and add a file mission-control/profiles/bigbrownchunx-facebookim-haze.profile :
> 
> [Profile]
> Manager=haze
> Protocol=bigbrownchunx-facebookim
> DisplayName=Facebook (Haze)
> IconName = im-bigbrownchunx-facebookim
> ConfigurationUI = haze
> Capabilities = chat-p2p, supports-alias, supports-avatars, supports-roster
> VCardDefault = 1
> VCardField = X-FACEBOOK
> SupportedPresences = hidden
> 
> 
> icons are available here :
> http://code.google.com/p/pidgin-facebookchat/downloads/list
> 
> of course they should be renamed and placed in correct folders.
> 
> Also note that it seems some distributions doesn't have the root certificate
> used for facebook's SSL (e.g. gentoo). In that case it won't connect.
> 
> Also that plugin hasn't proper localization yet.
> 
> Cheers
> 

Confirmed working for version 1.38 of the plugin.
Comment 2 Matej Cepl 2008-12-04 05:31:03 UTC
This more or less works, but with one caveat -- telepathy-haze as of version telepathy-haze-0.2.1-1.fc10.i386 was not able to download and use certificate. I have to manually copy login.facebook.com file from .purple/certificates/x509/tls_peers/ to /tmp/haze*/certificates/x509/tls_peers, where this directory in /tmp is created on the first unsuccessful attempt to connect to facebook. The file I collected with pidgin and the purple-facebookchat plugin.
Comment 3 Matej Cepl 2008-12-04 05:34:08 UTC
Created attachment 20810 [details]
modified haze.manager file

This could be set up even without touching files in /usr/share -- files there should be touched only by the package manager.

Copy this file to ~/.local/share/telepathy/managers/haze.manager
Comment 4 Matej Cepl 2008-12-04 05:35:18 UTC
Created attachment 20811 [details]
mission-control profile

... and this file to ~/.local/share/mission-control/profiles/facebookim-haze.profile
Comment 5 Guillaume Desmottes 2008-12-14 07:11:13 UTC
Any progress on this? I'd like to be able to use the Facebook plugin through Haze.
Comment 6 Will Thompson 2008-12-14 09:26:52 UTC
I was working on a branch of Haze that lets you stick certificates into .../share/telepathy-haze/certificates to whitelist them; given that, a prpl-facebook plugin could drop the cert in there and avoid the issue Matej mentioned about having to copy it into /tmp/haze-XXXXXX/.../ once Haze is running.

I'm not really convinced that haze's shipped .manager file should include the facebook stuff given that stock libpurple doesn't ship it, but as long as Empathy fails gracefully if the protocol doesn't actually exist on the CM I could be convinced to include it as a temporary workaround until the time comes when haze can stop shipping a .manager file at all.
Comment 7 Simon 2009-01-23 08:13:11 UTC
Just tried getting this to work on Ubuntu 8.10 with pidgin-facebookchat-1.47.deb and I continue to receive a 'Network error'.

I've updated the haze.manager and the bigbrownchunx-facebookim-haze.profile files and copied over the login.facebook.com file from Pidgin.  Perhaps this is a bug with Ubuntu or perhaps pidgin-facebookchat-1.47...any ideas?
Comment 8 Vincenzo Ciancia 2009-06-23 09:20:11 UTC
"but as long as
Empathy fails gracefully if the protocol doesn't actually exist on the CM I
could be convinced to include it as a temporary workaround until the time comes
when haze can stop shipping a .manager file at all."

Can I try to convince you? :)

Empathy is unfortunately going to replace pidgin in karmic, which is probably going to be the most widely used distribution in 2010, and this will steal users from pidgin-facebookchat, which is the fruit of some very good work I'd like not to be wasted.

Comment 9 Dafydd Harries 2009-08-10 03:47:36 UTC
(In reply to comment #8)
> "but as long as
> Empathy fails gracefully if the protocol doesn't actually exist on the CM I
> could be convinced to include it as a temporary workaround until the time comes
> when haze can stop shipping a .manager file at all."
> 
> Can I try to convince you? :)
> 
> Empathy is unfortunately going to replace pidgin in karmic, which is probably
> going to be the most widely used distribution in 2010, and this will steal
> users from pidgin-facebookchat, which is the fruit of some very good work I'd
> like not to be wasted.

If karmic ships Empathy, it will do so with Mission Control 5, so the .manager file will be deleted anyway and these patches will not be necessary.
Comment 10 Jérémy Lal 2009-09-02 16:59:00 UTC
with a recent update to mission-control 4.67, telepathy-haze 0.3.2,
i get a "network error" in gui, and :
(haze:14340): tp-glib-DEBUG: get_parameters: unknown protocol bigbrownchunx-facebookim

in haze logs.
also note it was working before that update, haze.manager still modified as before, and the .profile is still at the same place.

mission-control says, accordingly :
** (process:14341): WARNING **: request_connection_cb: RequestConnection failed: unknown protocol bigbrownchunx-facebookim

and nothing interesting is logged by empathy.
Comment 11 Will Thompson 2009-09-03 06:51:31 UTC
(In reply to comment #10)
> with a recent update to mission-control 4.67, telepathy-haze 0.3.2,
> i get a "network error" in gui, and :
> (haze:14340): tp-glib-DEBUG: get_parameters: unknown protocol
> bigbrownchunx-facebookim
> 
> in haze logs.
> also note it was working before that update, haze.manager still modified as
> before, and the .profile is still at the same place.
> 
> mission-control says, accordingly :
> ** (process:14341): WARNING **: request_connection_cb: RequestConnection
> failed: unknown protocol bigbrownchunx-facebookim
> 
> and nothing interesting is logged by empathy.
> 

The last release of Haze renames the protocol to 'facebook', so if you want to keep using an MC4-based Empathy, you'll need to update the .profile and .manager accordingly.

If you're using the latest Empathy 2.27.x release, which uses Mission Control 5 rather than Mission Control 4, you don't need the .profile any more; you just need to patch the .manager file (or delete it, although that might hit a bug in telepathy-glib that will be fixed in 0.7.35), and it should show up in Empathy.
Comment 12 Jérémy Lal 2009-09-03 22:16:39 UTC
Thanks, it works once renamed to facebook (i'm still using mc4)
Comment 13 Nicolò Chieffo 2009-09-09 12:14:52 UTC
Hi, I'm using:
pidgin-facebookchag 1.61 (deb from the site)
telepathy haze 0.3.2-1 (ubuntu karmic version)
telepathy glib 0.7.37.20090906182358-0daily1 (from a daily ppa)
empathy 2.27.91.1.20090906182136-0daily1 (from a daily ppa)

I added the content of the first post in haze.manager and renamed it to "[Protocol facebook]", and skipped the profile file, no more required with MC5.

I can create a new facebook account (with the nice icon :D), entering username and password, but when I click on "connect" nothing happens.
Unfortunately I don't know how to get debug from haze (because in the debug dialog I see "not supported"), so I can only see the empathy debug:

empathy/Account-DEBUG: 1,252524e+09: account_widget_applied_cb: Could not apply changes to account: Protocol facebook not found

Does it still work for you?
Comment 14 David Gee 2009-10-10 11:06:02 UTC
I also see the behaviour identified in comment #13.

pidgin-facebookchat 1.61 from code.google.com
telepathy-haze 0.3.2-1 from karmic/stable
empathy 2.28.0.1-1ubuntu from karmic/stable

(empathy:7161): empathy-DEBUG: account_widget_applied_cb: Could not apply changes to account: org.freedesktop.DBus.GLib.UnmappedError.McdAccountManagerError.Code0: Failed to set parameter: Protocol facebook not found
Comment 15 Jeremy Nickurak 2010-02-12 08:42:14 UTC
Is this obsolete per http://blog.facebook.com/blog.php?post=297991732130 ?
Comment 16 Frederic Crozat 2010-08-02 08:43:45 UTC
this problem is still important when using Groupwise through Telepathy-haze
Comment 17 Will Thompson 2010-09-06 02:13:08 UTC
The cert issues are a dup of bug 19018.

*** This bug has been marked as a duplicate of bug 19018 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.