May 24, 2009

Facebook on Kopete, take II

Last week I blogged about Facebook support for Kopete, just after I was able to see my buddies for first time on the screen.

Since then I have made some improvements to message handling and other code cleanups. The code is now available in a git repository at github.

As KDE’s svn trunk is frozen, I will keep it there for now.

You can get packages for openSUSE Factory (version 0.1.2). I gave up trying to build it for openSUSE 11.1, as Kopete API has changed quite a bit. However the package may build on 11.1 plus the KDE 4.2+ repositories. You need libqjson from Flavio Castelli installed (or -devel package if you want to build it).

Roadmap for next 0.1.3:

  • Add caching to avoid downloading the pictures every 3 minutes.
  • More bugfixes

Roadmap for later:

  • Look into adding , searching, and other stuff.

Be aware. This is weeks-old-code. It has not been tested much and has lot of debug messages. Use it if you are a early adopter only.

Comments (27)

  1. May 25, 2009
    LuHe said...

    I get these errors when I try to load the plugin: kopete(25511)/kdecore (KLibLoader) kde4Factory: The library “/home/lukas/kde-versions/trunk/lib/kde4/kopetefacebook.so” does not offer a qtplugininstance function. kopete(25511)/kdecore (KLibLoader) kde3Factory: The library “/home/lukas/kde-versions/trunk/lib/kde4/kopetefacebook.so” does not offer an “initkopetefacebook” function. kopete(25511)/libkopete Kopete::PluginManager::loadPluginInternal: Loading plugin “kopete_facebook” failed, KServiceTypeTrader reported error: “Es kann kein Dienst gefunden werden, der den Anforderungen entspricht.”

  2. May 25, 2009

    [...] Read the rest here: Facebook on Kopete, take II at Duncan Mac-Vicar P. [...]

  3. May 25, 2009

    Hi Duncan, thank you for your work, I hope people forget soon MSN, an IMHO FaceBook is doing this.

    BTW, now I’ve seen there is a nice feature of the FaceBook chat: you can set online/offline state by list of friends, so you can be visible only for a kind of friends, it would be great to see this, and this is a good idea also for the other protocols.

    Bye.

  4. May 25, 2009
    Jorge said...

    I understand you’d need KDE Factory packages for openSUSE because of the kopete version. But these are available for 10.3, 11.0, 11.1, and factory: http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/

    Shouldn’t that be enough to get it to compile for those openSUSE versions?

  5. May 25, 2009

    [...] nonostante lo sviluppatore dichiari di non aver testato l’estensione su openSUSE 11.1 a causa di alcuni cambiamenti che hanno [...]

  6. May 25, 2009
    Mark said...

    Hey Ducan, that it very cool. Is it possible to extend the functionality to the chat function of other social networks? May be studivz.net/ myvz.de could work. They are Germany based facebook clones. Do not know if there chat works similar. But there already other messengers who have implemented it.

  7. May 25, 2009
    Kavalor said...

    Thanks for your work and I would also like to see if the German social networks (f.e studivz.net or meinvz.net (myvz.net) would be supported. The should use the same protocoll because they are made by the same company.

  8. May 26, 2009
    Luis said...

    Hi. Is there a way to make these into a debian package? I am unable to compile this due to space constraints but if I could get my hands on a pre-compiled package (even a tgz one) I could install it myself and report on whatever you need to test. By the way, the rpm’s from suse are not compiled against kde4.3 beta. I can unpackage them but the plugin refuses to work. Anyway, so far, great work!

  9. May 26, 2009
    Keith Z-G said...

    Hmm, I’d love to try this out (I definitely AM an early adopter, and I’d try it out even if it was 99% likely to fail just to see), but despite the package for Factory installing just fine (I normally run Kubuntu 8.04 on my primary PC, but this is in an openSUSE Factory VirtualBox session) it just simply doesn’t show up in Kopete.

    Anyways, regardless of the mysterious inability of the protocol to show up for me, nice work!

  10. May 27, 2009
    Keith Z-G said...

    Ignore my comment above, weirdly after a second restart of the VM the Facebook plugin is showing up fine. And working fine too! Since I’m running Kopete from the terminal I’m having fun seeing all the “we got a message!!!” stuff :)

  11. May 27, 2009
    paul92 said...

    Hi, I would like using it on Ubuntu, is it possible? Thx

  12. May 27, 2009
    Mark said...

    Any Chances for Kubuntu packages? Installation with alien did not work :-(

  13. May 27, 2009
    Mark said...

    Any chances for Kubuntu packages? Alien install did not work?

  14. May 28, 2009
    Mark said...

    I found out that the StudiVZ-chat uses a (unfortunately) modified Jabber-implementation. It is documented here: http://freakazoid.teamblind.de/2009/02/06/wie-das-studivz-zum-pidgin-kam/ http://freakazoid.teamblind.de/2009/02/27/studivz-und-pidgin-teil-2/

    Unfortunately in German, but I assume the author konradgraefe@aol.com speaks/ reads english to give help.

    There is a wish in the KDE-bug-system here: https://bugs.kde.org/show_bug.cgi?id=176274

  15. May 30, 2009
    paul92 said...

    Mark : thanks for your answer and sorry for my English, I have tested with alien, but i received an error :

    sudo alien -i /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 attention: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Entête V3 DSA signature: NOKEY, key ID 4b8b0a41 warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41 Unpacking of ‘/home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm’ failed at /usr/share/perl5/Alien/Package/Rpm.pm line 155

    I have tested to compile too, if you understand French, you can see this tread : http://forum.ubuntu-fr.org/viewtopic.php?id=320600

    Thanks

  16. June 1, 2009
    Peca said...

    Good job. thank you.

  17. June 11, 2009
    Ravic said...

    Hi :) I would try this plugin, but i’m a fedora user and i don’t know if I can install the suse rpm in my Fedora 11 :) Otherwise, can you post the spec file so i can modify it and create a fedora package? Thank you :D

  18. June 11, 2009
    Ravic said...

    Hi, I would try this plugin, but I’m a Fedora user and I don’t know if i can install a suse rpm in my Fedora 11 system.

    Otherwise, can you post the spec file, so i can modify it and create a Fedora suitable package?

    Thank you :)

  19. June 17, 2009
    Mark said...

    I have it running now. Is there a place to report wishes? I start here, but I can put them to the bugs.kde.org later, if it is possible to report there: - Support of showing the status of contacts would be useful - The difference between “online” and “idle” icons could be improved - UserInfo does not react - remove contact: I do not know what this is going to do, therefor I have not tried it. But I fear it could remove someone from the friend list in Facebook itself. There should be the possibility to remove someone from Kopete contactlist from Facebook and not removing the contact from facebook.

  20. June 17, 2009
    Mark said...

    Another thing I noticed: Facebook contacts are missing the matching IM-Type in Kaddressbook.

  21. June 17, 2009
    Monty said...

    Kubuntu has added it to their Karmic Koala repositories (along with qjson)and I have seen a bug tracker on launchpad for it. I haven’t played with it yet since I just found out about it this morning and I haven’t been home.

  22. June 18, 2009
    duncan said...

    Mark, for now you can use bugs.kde.org I guess. I released something really rough before going into vacation, so I will polish all those edges when I am back, thanks for your feedback!.

  23. June 29, 2009
    Mark said...

    Hey Duncan, I have now submitted several reports to bugs.kde.org. Hope they are useful.

  24. August 6, 2009
    francesco.r said...

    Ola, just wanted to mention that the username, used to the email but now can be also the username selected by the user itself: I’ve chosen name.surname ant it work, the email does not

  25. September 16, 2009
    Fabio A. Correa said...

    Hello, thanks for this useful protocol software. It is available for Gentoo Linux at https://bugs.gentoo.org/280153 .

  26. September 16, 2009
    Fabio A. Correa said...

    Hello Duncan, I have a problem with Kopete-Facebook. I have set up a firewall, so in spite of having rules to allow kopete-facebook accessing my account, every now an then a contact picture download process may fail and cause Kopete to crash:

    error retrieving picture ASSERT failure in QNetworkReplyImpl: “Backend called finished/finishedWithError more than once”, file access/qnetworkreplyimpl.cpp, line 406 KCrash: Application ‘kopete’ crashing…

    The line with the problem is facebook/chatservice.cpp:915. So instead of triggering an error every time a download fails, is it possible to do something less drastic? Thanks for your attention.

  27. October 17, 2009
    mohi said...

    Thanks for your great job. :-)

    I live in Iran and facebook is filtered here after election and we can use it through proxy. Is there any way to implement connecting via proxy for this plugin?

Leave a Reply