Facebook Messenger Account

Rating: 
4.583335
Your rating: None Average: 4.6 (12 votes)

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.

Known issues:

  • group messages do not work (at least from what I've tried)
  • messages are marked read as soon as they arrive (not when you read them)
  • an old version of purple-facebook (3d30d24fdbef from 12. August 2015) is used, until the mark-read behavior is changed upstream or patched in the current version
  • if this application refuses to upgrade, please reinstall it (together with purple-facebook)

 

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:

Donate in EUR

Donate in USD

Application versions: 
Changelog: 

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's picture

I'll try to look into it, thanks!

EDIT: Fixed!

JeffHoogland's picture

Does this still work? Keep getting a message that it is failing to connect on Sailfish on my OnePlus One.

minitreintje's picture

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's picture

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:

ssu ar mer-tools
pkcon refresh

and then trying to install this app again.

boebbele's picture

since sailfishupdate it dont work anymore. It displays a networkerror when I write a message.

nodevel's picture

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's picture

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's picture

Any updates for a fix that message is marked as read ?

nodevel's picture

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's picture

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's picture

I'm getting an error signing in since this morning, invalid user/pass. Have they broke it?

sedric's picture

Try to delete / recreate your account. It works for me.

foufoutos's picture

i cant install give error File './mw/armv7hl/telepathy-haze-0.8.0-1.1.5.armv7hl.rpm' not found on medium 

nodevel's picture

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:

ssu ar mer-tools
pkcon refresh

and then trying to install this app again.

DameCENO's picture

Much anticipated indeed, thanks, testing mode activated, will get back to you... Finally chatting on facebook from jolla just like N9. Thanks man

DameCENO's picture

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's picture

Hope You get this issue solved, I think we need this app :)

death_jax's picture

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's picture

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's picture

I had this error too on 1.1.9. I manually installed haze from the terminal, then it worked.

BillyHalley's picture

Very useful, i still have to try it out ;)

itdoesntmatt's picture

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's picture

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's picture

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