Comments on: Facebook Chat In Bitlbee https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/ Linux. GNU. Freedom. Sun, 17 Sep 2017 02:25:05 +0000 hourly 1 https://wordpress.org/?v=4.9-alpha-41386 By: Eric https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-123720 Sat, 26 Jan 2013 08:54:45 +0000 http://pthree.org/?p=1306#comment-123720 This isn't working for me and I'm not sure why. I probably did something wrong but the script just isn't doing anything. All people are still numbers.

I'm still quite new to doing any kind of stripting with linux but followed what you said to do and still am not getting much of anywhere.

Any help is appreciated if this is still active.

]]>
By: algo https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-115843 Thu, 21 Jul 2011 14:37:17 +0000 http://pthree.org/?p=1306#comment-115843 Using Tom's changes at post 22:

16:37 "use" not allowed in expression at (eval 234) line 10, at end of line
16:37 syntax error at (eval 234) line 10, near "use strict"
16:37 BEGIN not safe after errors--compilation aborted at (eval 234) line 11.

Got this error, can anyone give me a hand here? 🙂

]]>
By: quintopia https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-111509 Fri, 05 Nov 2010 17:34:38 +0000 http://pthree.org/?p=1306#comment-111509 Annoyed at the way the rename script indiscriminately tossed away all special characters from my friend's names, I added the following lines to my copy (which should basically cover every reasonable person's name and more):

$ircname =~ s/Æ/Ae/g;
$ircname =~ s/æ/ae/g;
$ircname =~ s/Ð/Dh/g;
$ircname =~ s/ð/dh/g;
$ircname =~ s/þ/th/g;
$ircname =~ s/Þ/Th/g;
$ircname =~ s/ß/ss/g;
$ircname =~ tr/[á,à,ä,å,ã,â,Á,À,Ä,Å,Ã,Â,ç,Ç,é,è,ë,ê,É,È,Ë,Ê,í,ì,ï,î,Í,Ì,Ï,Î,ñ,Ñ,ó,ò,ö,ô,õ,ø,Ó,Ò,Ö,Ô,Õ,Ø,ú,ù,ü,û,Ú,Ù,Ü,Û,ý,Ý,ÿ]/[a,a,a,a,a,a,A,A,A,A,A,A,c,C,e,e,e,e,E,E,E,E,i,i,i,i,I,I,I,I,m,M,o,o,o,o,o,o,O,O,O,O,O,O,u,u,u,u,U,U,U,U,y,Y,y]/;

Should be fairly obvious where it goes...right before the line that smashes all the characters it's trying to preserve 😀

]]>
By: Wilmer https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110975 Mon, 14 Jun 2010 08:10:20 +0000 http://pthree.org/?p=1306#comment-110975 Since this post is one of the first results in a Google query for "bitlbee facebook", I should probably mention that the rename script is not required anymore for recent BitlBee versions. You can just use the nick_source setting instead. Something like this should work:

account set facebook/nick_source full_name

(And "set lcnicks off" if you want them CamelCased.)

If you've already used the rename script you *may* have to re-add your Facebook account before this will take effect.

Also I'm trying to make http://wiki.bitlbee.org/HowtoFacebook the canonical source of information on BitlBee + Facebook. Trying to centralize BitlBee docs a little bit better.

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110878 Wed, 19 May 2010 14:02:49 +0000 http://pthree.org/?p=1306#comment-110878 @stringz- No, you're not the only one. This is because those people are signing in multiple times to their Facebook account, or they are in a chat room with you, using their Facebook account. That's bitlbee for you. 🙂

]]>
By: stringz https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110877 Wed, 19 May 2010 13:41:59 +0000 http://pthree.org/?p=1306#comment-110877 Is it just me or is anyone else getting multiple instances of each user? I get -12345, -12345_, -12345__, and so on. They all get renamed, (every time, and like Ash said, "small price to pay"). My PROBLEM is, when someone initiates a chat with me, it shows up in seperate windows for each -12345_. So I'm basically chatting to the same person on 4 or 5 windows.

Is it just me?

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110873 Mon, 17 May 2010 02:15:09 +0000 http://pthree.org/?p=1306#comment-110873 So, I've been faced with this now, as well. Thank you Facebook! However, the latest bitlbee, 1.2.7, has support for renaming Facebook nicknames directly. Worth giving a shot.

]]>
By: Ash https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110872 Sun, 16 May 2010 23:46:11 +0000 http://pthree.org/?p=1306#comment-110872 Now I just have to put up with all my contacts being re-saved every time they come online (very small price to pay, though!). If anyone reading this also uses bitlbee for MSN, like I do, you might have noticed problems authenticating passports. This has been rectified in the latest version. If you're running a Debian-based Linux distribution, the debs are available here:

http://code.bitlbee.org/debian/devel/

]]>
By: Ash https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110871 Sun, 16 May 2010 23:24:03 +0000 http://pthree.org/?p=1306#comment-110871 Nice one Tom, that worked a treat. I tried to give it a go myself, but my programming knowledge doesn't extend much further than bash scripting. But now that you've shown the changes, of course it makes perfect sense. Cheers!

]]>
By: tom https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110869 Sat, 15 May 2010 14:55:57 +0000 http://pthree.org/?p=1306#comment-110869 Easy enough to fix. In the script, just change

if($channel =~ m/($bitlbeeChannel)/ and $nick =~ m/$username/ and $nick =~ m/^u\d+/ and $host =~ m/($facebookhostname)/ )

to:

if($channel =~ m/($bitlbeeChannel)/ and $nick =~ m/$username/ and $nick =~ m/^\-\d+/ and $host =~ m/($facebookhostname)/ )

(note the uXXXXXXXX@ changed to -XXXXXXXX@, so we replace u with \-)

and

$server->command("whois $nick");

to:

$server->command("whois \"$nick\"");

To escape the new '-'s. Hopefully they won't change things around again.

]]>
By: Utopiah https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110867 Thu, 13 May 2010 13:26:31 +0000 http://pthree.org/?p=1306#comment-110867 Same problem for me too, "5:19 -!- -123456789 [-123456789@chat.facebook.com] has quit [Leaving...]"

I didn't change anything and it happened overnight so I reloaded the script, just in case, nothing changed, still can't rename.

]]>
By: Ash https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110865 Thu, 13 May 2010 02:40:43 +0000 http://pthree.org/?p=1306#comment-110865 Well I guess I'm kind of glad to know that I'm not the only one with this issue. I've tried quite a few things to figure out what might be causing the problem, but to no avail. Which is making me think, as James suggested, that it might be at Facebook's end. But that still doesn't explain why yours is fine, Aaron. If it is at Facebook's end, then I guess we'll just keep having to put up with it until it fixes itself. Hopefully the quotation marks fix helped you James!

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110864 Wed, 12 May 2010 18:26:50 +0000 http://pthree.org/?p=1306#comment-110864 There must be an issue then. It's still working just great for me. No issues that I've seen yet. Makes me a bit worried though.

]]>
By: james https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110863 Wed, 12 May 2010 17:02:06 +0000 http://pthree.org/?p=1306#comment-110863 Yeah, Ash, this started happening to me too. I think that Facebook changed the way their Jabber implementation works, because it started for me on exactly the same day. I'm disabling FB in bitlbee until either one gets an upgrade.

]]>
By: Ash https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110862 Wed, 12 May 2010 05:56:16 +0000 http://pthree.org/?p=1306#comment-110862 Hmmm... yes, I may have to investigate my setup a little further. It's weird that it just started happening out of the blue, though, without me making any changes. If anyone else reading this is experiencing the same problem with the hyphen in irssi, I have come up with a way around sending people messages. If you enclose the hyphen + number in quotation marks, it will accept the username and send the message without any problem. Hopefully I can get this sorted as having to run a /who and change windows every time someone logs on is getting rather frustrating... 😉

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110861 Wed, 12 May 2010 04:09:15 +0000 http://pthree.org/?p=1306#comment-110861 @Ash- I don't have that problem. All of my friends that are currently logged in, do not a hyphen prefixed to their JID. Further, the script is continuing to rename nicks for me just fine. Also, I just initiated a chat with a friend, and everything worked as expected. So, I'm guessing you have something seriously broken with your setup.

]]>
By: Ash https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110859 Wed, 12 May 2010 00:13:39 +0000 http://pthree.org/?p=1306#comment-110859 I noticed as of this morning that all of the Facebook user identification numbers are now prefixed with a hyphen, so the script is no longer working, and none of the saved names are recognised. And even more annoyingly, you can't use irssi to initiate a conversation with someone because of this hyphen - you just get a "Not enough parameters given" error, as presumably it's expecting some kind of option flag. Has anyone else spotted this, or is it just my setup...? Hopefully it's just a temporary thing with Facebook and things return to normal soon.

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110834 Thu, 22 Apr 2010 23:44:39 +0000 http://pthree.org/?p=1306#comment-110834 Yeah, right now it's spotty, at best.Some clients authenticate, some don't. Sometimes, the same client will authenticate, then it won't. It's entirely in Facebook's hands. Additionally, when you get connected, you'll learn that you can't set your away status with an external client. So, even though you told Bitlbee you're away, you'll still appear ready to chat to your friends logging into the web interface.

Long story short, Facebook needs to seriously work on it.

]]>
By: Austin Seraphin https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110833 Thu, 22 Apr 2010 23:35:30 +0000 http://pthree.org/?p=1306#comment-110833 I can't seem to get authenticated. I use the latest bitlbee version 1.2.51. My girlfriend also tried. She could connect, but couldn't get her buddy list to work. She went into the bitlbee support channel, and they said that Facebook needs to correct some things on their end, and that it has to do wit the ip address last used to log into Facebook.
I also tried it with emacs-jabber, and had the same problem.

]]>
By: singleuser https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110808 Sat, 17 Apr 2010 04:31:36 +0000 http://pthree.org/?p=1306#comment-110808 I've been using bitlbee for years too. 🙂

]]>
By: Ash https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110761 Sat, 20 Mar 2010 09:19:49 +0000 http://pthree.org/?p=1306#comment-110761 @Aaron - I typed your instructions as above, both when I first tried it based on Facebook's instructions, and then based on yours, but still no dice. And I was using the correct username and password. It turns out (I think) that the version of bitlbee that I was using was too old to support Facebook chat, for whatever reason. I'm running irssi/bitlbee on an ASUS router running OpenWRT (long story - work proxy issues), however I've just set up an old laptop with the latest Ubuntu distro, and tried irssi/bitlbee on that, with your instructions, and it's worked a treat. So I'm tipping that it is just a bitlbee version issue (although I'm not really sure how). Still... I can now access Facebook chat through the proxy at work (Facebook is blocked) once I do some fancy port forwarding. Got there in the end!

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110725 Thu, 25 Feb 2010 13:29:15 +0000 http://pthree.org/?p=1306#comment-110725 @piousminion- That's a bit naive, trusting any and all scripts at scripts.irssi.org. Anyone and everyone can write an Irssi script, and submit it to scripts.irssi.org. The script might go through a light review process, but they're certainly not scrutinized for security.

Further, the script I linked to isn't long, and isn't complicated. You can easily read the script and see that it's doing exactly as advertised. There is nothing shady going on.

]]>
By: piousminion https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110724 Thu, 25 Feb 2010 04:26:58 +0000 http://pthree.org/?p=1306#comment-110724 Very nice.
Although, I have to admit I didn't want to trust the script at first because it wasn't at scriptsirssi.org

Thanks. 🙂

]]>
By: Utopiah https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110722 Tue, 23 Feb 2010 19:18:26 +0000 http://pthree.org/?p=1306#comment-110722 Indeed Aaron, I just understood that today when a contact had her NameSurename on Gtalk which is the same format Facebook is using. I came back here to say so but it seems you figured that out already.

Maybe the script could be changed to rename by appending [Facebook] if the renaming fails.

Cheers and thanks for your quick reply 🙂

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110711 Fri, 19 Feb 2010 21:49:07 +0000 http://pthree.org/?p=1306#comment-110711 @Utopia- Are you connected to another service? If so, do you already have your friends saved in that service's roster? Or are you connected to a Jabber MUC where these names are currently in use? If so, that is why. You can see everyone in your roster with 'blist all' for any troubleshooting, should it be needed.

]]>
By: Utopiah https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110710 Fri, 19 Feb 2010 18:48:30 +0000 http://pthree.org/?p=1306#comment-110710 Example :

19:41 -!- u12345678 [u12345678@chat.facebook.com] has joined &bitlbee
19:41 rename u12345678 FriendName
19:41 save
19:41 Nick `FriendName' already exists
19:41 Configuration saved
19:41 -!- u12345678 [u12345678@chat.facebook.com] has quit [Leaving...]
19:42 -!- u12345678 [u12345678@chat.facebook.com] has joined &bitlbee
19:42 -!- ServerMode/&bitlbee [+v u12345678] by seedea.org
19:42 rename u12345678 FriendName
19:42 save
19:42 Nick `FriendName' already exists
19:42 Configuration saved

]]>
By: Utopiah https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110709 Fri, 19 Feb 2010 16:57:15 +0000 http://pthree.org/?p=1306#comment-110709 Some renaming seems to fail the saving process, some friends seems to randomly loose their name and thus info/save have to be done repetitively :/

Any idea? Suggestions?

PS : for people having trouble connecting, if you just created your username, do disconnect AND reconnect from your account. The IP test is not correct as I did succeed in connecting from a remote bitlbee server that did not connect through FB first.

]]>
By: Ramen https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110708 Fri, 19 Feb 2010 05:38:04 +0000 http://pthree.org/?p=1306#comment-110708 I've been experiencing the same problem as Ash... good to know it's not just me, at least. I've added the account as I would any other jabber account:

account add jabber ramen@chat.facebook.com apassword

I'm using my correct facebook username, and I'm using the correct password as well. I've even made sure that I've logged into facebook from the same IP as the bitlbee server, per a random slashdot comment. No dice.

I'm coming from a private bitlbee server, which might make a difference? The error message isn't helpful, and I'm not sure where to look for any logs or more useful information.

]]>
By: Aaron https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110707 Wed, 17 Feb 2010 23:39:23 +0000 http://pthree.org/?p=1306#comment-110707 @Ash What did you type when setting up your account? And, are you sure you're using the right username, as found at that link, and your password that you use to login to the site?

]]>
By: Ash https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110706 Wed, 17 Feb 2010 22:58:29 +0000 http://pthree.org/?p=1306#comment-110706 Not at all related to your irssi script (which I'm looking forward to trying), but I'm having no end of trouble trying to just connect to Facebook chat over XMPP with bitlbee. Without fail, following the above account creation instructions, I get this every time:

09:53 JABBER(username@chat.f - Logging in: Connecting
09:53 JABBER(username@chat.f - Logging in: Connected
09:53 JABBER(username@chat.f - Logging in: Requesting Authentication Method
09:53 JABBER(username@chat.f - Logged out: Connection lost
09:53 JABBER(username@chat.f - Signing off..

I've replaced my real username with "username" in the output above, obviously. Don't suppose any readers have any ideas what it might be...?

]]>
By: Links 14/2/2010: Linux 2.6.33 RC 8, New Android Platform | Boycott Novell https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110704 Mon, 15 Feb 2010 01:46:34 +0000 http://pthree.org/?p=1306#comment-110704 [...] Facebook Chat In Bitlbee [...]

]]>
By: GoblinX Project » GoblinX Newsletter, Issue 237 (02/14/2010) https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110702 Sun, 14 Feb 2010 11:16:15 +0000 http://pthree.org/?p=1306#comment-110702 [...] Facebook Chat In Bitlbee [...]

]]>
By: Aaron Toponce : Facebook Chat In Bitlbee | Drakz Free Online Service https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110701 Sun, 14 Feb 2010 10:02:16 +0000 http://pthree.org/?p=1306#comment-110701 [...] the original post: Aaron Toponce : Facebook Chat In Bitlbee Share and [...]

]]>
By: Daniel Wiberg https://pthree.org/2010/02/13/facebook-chat-in-bitlbee/#comment-110700 Sat, 13 Feb 2010 17:52:52 +0000 http://pthree.org/?p=1306#comment-110700 It renames people as they they come online, so an 'account off' and 'account on' triggered the rename of users already online. Great script, thanks!

]]>