Adds Facebook Messenger support to SailfishOS accounts, using the purple-facebook libpurple plugin and the telepathy-haze library. The advantage over the XMPP approach is that messages can be sent and received even if one party is/was offline.
After the installation, go to Settings/Accounts/New Account and add the Facebook Messenger account. As the username, use your Facebook username. As for the password, I have tested it only with an app specific password (can be generated in your Security settings on the Facebook web), so that is the recommended approach. After adding the account, restart your phone and now you can go online with the account.
Heavily inspired by Thaodan's Skype Account plugin.
If you have any other issues, please let me know - I have not tested this much, so install/use only at your own risk. On the other hand, issues will most likely come from the purple-facebook plugin, so it is up to its developers to fix them.
I'm not the author of the purple-facebook library, just a packager, so donations for the plugin should go to those developers. Nevertheless, the packaging also took me quite a lot of time (still being quite an inexperienced packager), so if you like it, then please consider a small donation:
Attachment | Size | Date |
---|---|---|
haze-accounts-extensions-facebookmessenger-0.2-1.noarch.rpm | 6.56 KB | 21/09/2015 - 23:22 |
haze-accounts-extensions-facebookmessenger-0.3-3.noarch.rpm | 6.56 KB | 22/09/2015 - 14:11 |
haze-accounts-extensions-facebookmessenger-0.4-1.noarch.rpm | 6.56 KB | 23/01/2016 - 12:24 |
0.4 - Minor change - fixed account icon path to accomodate to jolla-ambient -> sailfish-default theme changes in Sailfish 2.0.1.7.
0.3 - Downgraded purple-facebook to version 3d30d24fdbef from 12. August 2015 as a workaround for never-ending notifications. If you cannot upgrade, then please refresh my repo and reinstall both this package and purple-facebook.
0.2 - Replaced custom account icon with the default from Jolla
0.1 - Initial release
Comments
nodevel
Sat, 2016/01/23 - 12:25
Permalink
I'll try to look into it, thanks!
EDIT: Fixed!
JeffHoogland
Tue, 2016/01/19 - 06:52
Permalink
Does this still work? Keep getting a message that it is failing to connect on Sailfish on my OnePlus One.
minitreintje
Wed, 2015/12/23 - 22:58
Permalink
I tried to install this package but I received an error: 'repo-not-available'
TFile './mw/armv7hl/telepathy-haze-0.8.0-1.1.5.armv7hl.rpm' not found in medium 'https://releases.jolla.com/releases/latest/jolla/armv7hl/'
nodevel
Mon, 2016/01/25 - 22:09
Permalink
Hi, thanks for feedback.
May I ask on what device are you using? It looks like the jolla repo is empty on unofficial devices, so you might need to add the mer-tools repo instead, by running:
and then trying to install this app again.
boebbele
Thu, 2015/11/05 - 22:41
Permalink
since sailfishupdate it dont work anymore. It displays a networkerror when I write a message.
nodevel
Fri, 2015/11/06 - 00:10
Permalink
It works fine here, on SailfishOS 2.0.0.10. Maybe try re-adding the account?
Additionaly, this should be really independent on any SailfishOS changes - so if this stops working one day, it will be likely Facebook who broke it (and then I won't be able to do much with that, unfortunately).
boebbele
Sat, 2015/11/07 - 00:24
Permalink
I added the account new. But it dont work.
I added an xmpp account and logged in with my facebook ...@chat.facebook.com name (like Xabber). This works for me.
Fidoraptor
Fri, 2015/10/23 - 12:15
Permalink
Any updates for a fix that message is marked as read ?
nodevel
Fri, 2015/10/23 - 13:39
Permalink
Which fix do you mean? If you mean the problem where messages didn't get market as read and you would then get the same message over and over again, this has been fixed ~1 month ago.
pauligrinder
Mon, 2015/10/12 - 13:13
Permalink
Thanks for this, but there's one anoying thing about it: If I receive a group message, it doesn't show up on the phone. Ok, no problem so far, that's a known thing. But the thing is, those messages get marked as read straight away, so people think I have read the message when in fact I don't even know I received one. This happens even when I'm simulatenously running the official messenger app on my tablet (Android). Sometimes the notification pops up but disappears straight away. So it would be very nice if this could be fixed and having group messages enabled in general would be very nice :)
abranson
Wed, 2015/09/30 - 12:48
Permalink
I'm getting an error signing in since this morning, invalid user/pass. Have they broke it?
sedric
Mon, 2015/10/12 - 16:26
Permalink
Try to delete / recreate your account. It works for me.
foufoutos
Wed, 2015/09/23 - 22:26
Permalink
i cant install give error File './mw/armv7hl/telepathy-haze-0.8.0-1.1.5.armv7hl.rpm' not found on medium
nodevel
Mon, 2016/01/25 - 22:11
Permalink
Hi, thanks for feedback.
May I ask on what device are you using? It looks like the jolla repo is empty on unofficial devices (I have found out only recently, so that's why it took so long), so you might need to add the mer-tools repo instead, by running:
and then trying to install this app again.
DameCENO
Wed, 2015/09/23 - 16:11
Permalink
Much anticipated indeed, thanks, testing mode activated, will get back to you... Finally chatting on facebook from jolla just like N9. Thanks man
DameCENO
Wed, 2015/09/23 - 17:05
Permalink
Works like a charm, a donation on the way bro, keep up the good work Now I officially have one less thing to miss about my N9, we getting there, we getting very much there
Also wanted to mention that I only had to log in with my facebook username and password without generating any app password from my account and the feel is just as it was on MeeGO, amazing
Sanpo
Mon, 2015/09/21 - 17:28
Permalink
Hope You get this issue solved, I think we need this app :)
death_jax
Mon, 2015/09/21 - 17:25
Permalink
Hi nodevel, I tried to install your Facebook Messenger, but seems without success (Skype works well instead). Recapping the procedure, for the username I have to insert the mail or the Facebook username?
In order to understand, if the "Facebook username" is the correct method, for example: if my username is Death Jax, I have to insert Death Jax or death.jax (as shown in the Facebook URL)?
For the password I have to insert the password obtained by your advice. I scanned the QRCode of the "app specific password" method and then it added to my Google Authenticator app the ability to generate Facebook password for my account. But when I tried to insert the numbers into your app, nothing happened (like the icon in the People app or the status control shown in the Status setting, shown instead with the Skype and Google plugins), even after rebooting. Maybe for the wrong "username", or maybe for the wrong password, I don't know, I tried all the possibility.
MrPancake
Mon, 2015/09/21 - 13:56
Permalink
It says that an error occured during installation.
File './mw/armv7hl/telepathy-haze-0.8.0-1.1.5.armv7hl.rpm' not found on medium 'https://releases.jolla.com/releases/latest/jolla/armv7hl/'
Not sure if it's my fault since it installs for others. Running 1.1.9.28 from before opt-in.
abranson
Wed, 2015/09/23 - 16:34
Permalink
I had this error too on 1.1.9. I manually installed haze from the terminal, then it worked.
BillyHalley
Mon, 2015/09/21 - 13:45
Permalink
Very useful, i still have to try it out ;)
itdoesntmatt
Mon, 2015/09/21 - 11:17
Permalink
hey nodevel, great work, its very useful. and with link function u can add photos to all your contact ( even if you will have to delete surname, avoiding repetition, if you saved previosly contact nane and surname in one field, because facebook separate name and surname). and great for messanging. but this was not affected by api changes of fb? the worst annoying thing that dont let me use it is the continued flow of notification of messages already read from phone. they disappear only if i read them by webpage. so its is so annoying that take u to deactivate account in settings
nodevel
Mon, 2015/09/21 - 16:49
Permalink
It is very annoying indeed. I mention it in the known issues, but as I didn't test it that much yesterday, I didn't realize how big of an issue it is.
I can't seem to figure out what is the problem, though - it acts like 'mark_read' is set to FALSE, but it should be set to TRUE by default (and it is everywhere in the code that way). I am now trying an older version of purple-facebook, to see whether it's not a regression introduced in the recent version. Would you be willing to test this version?
EDIT: Nevermind, the old version is having the very same problem.
EDIT 2: I have now created an issue on purple-facebook's github, but I wouldn't hold my breath.
itdoesntmatt
Mon, 2015/09/21 - 21:03
Permalink
and for temporary workaround while they hoefully are fixing it..it would be possible to send an empty message or fake massage when opened? or an automatic message like " this is automatic reply sent by" in order to stop it? i now its not the best way,but at least would be usable for rapid communications (sure not for long chatting)
edit: it seems, for my experience,to replicate notifications indipendently from having replyed or not.
i have tried mantening chat opened on website in cover multitasking and notifications seemed to works well, because website marked as read messages, but and the end it have gone bad and have started to give the same problem. i really dont know what is it...i cant afford whats the problem. maybe someone else could try to do the same ( chatting with sms app, while on homescreen is also open facebook webpage of that chat with the specific contact ) in order to verify if is really a problem of unmarking as read using sms app. nodev what u think?
Pages