Le blog de Olivier Crête

Categories

Archives

July 2010
M T W T F S S
« Jun   Mar »
 1234
567891011
12131415161718
19202122232425
262728293031  

RSS 2.0


Log in

A couple months ago, Facebook announced announced that their chat system would also be available through XMPP. So it is possible to just configure it like any other Jabber server on a N900. And then to merge Facebook contacts with other contacts and it the address book will store it as a field of type “X-JABBER”.  Since the PR1.2 version of Maemo5, Nokia has added a specific profile for Facebook to the N900 software. But instead of calling the address book field “X-JABBER”, they created a “X-FACEBOOK” field (since Facebook Chat is not XMPP in the backend, it can not talk to other Jabber servers). So if you remove your old Jabber account and re-add it as a Facebook account and use Marco’s contact merger to merge back the contacts. You’re still stuck with a bunch of extra “X-JABBER” fields in your contacts. So to clean them up, I wrote a really simple program to remove them. It is based on Marco’s jid-to-email program. You can get the source code or a precompiled binary. You can just put the binary on your N900 and run it from the Terminal as “~/MyDocs/remove-old-facebook” (if you put it in the N900’s documents root). Be warned that is is not a good example like Marco’s code, I stripped all error handling and it never frees anything. If you want a good example, look at Marco’s code.

One answer to “Removing leftover Facebook Chat Jabber contacts on Maemo”

No avatar

Did you also notice that Marco’s code don’t check for X-FACEBOOK? I did some patches to fix that:
http://people.freedesktop.org/~felipec/fb-migrator/

Write a comment:

: (required)

 

This page is XHTML 1.0 Strict and CSS level 3