Active Topics

 



Notices


Reply
Thread Tools
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#21
Now I've tested to actually use the stuff. Someone sent me a message. I got the message. I replied to the message. I got disconnected. It reconnected automatically. I got the same message again. I replied again. I got disconnected.

The above happened about ten times, but then suddenly it started to work. We talked for a while, and everything worked fine.

But now I have trouble using the ordinary Facebook chat and some other Facebook features in Firefox on my laptop. Going offline on the phone makes it work on the laptop again. I've seen the same behavior using the same plugin in Pidgin on a PC (or it might've been some other IM client with some other Facebook plugin).
 
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#22
According to http://code.google.com/p/pidgin-face...ki/FuturePlans, their thingy supports grabbing birthdays from Facebook. Anyone know how to get that into their birthday fields in the address book? I guess it should be added to capabilities in the profile file, but what is the name of the capability?
 
Lord Awesome's Avatar
Posts: 47 | Thanked: 24 times | Joined on Nov 2009 @ Bolton, United Kingdom
#23
Code:
apt-get install libjson-glib-1.0-0
That will install libjson and save all the messing around.
http://maemo.org/packages/ is a good place to see what's available in the repositories.
 
Posts: 2 | Thanked: 1 time | Joined on Dec 2009
#24
Originally Posted by Palleman View Post
According to http://code.google.com/p/pidgin-face...ki/FuturePlans, their thingy supports grabbing birthdays from Facebook. Anyone know how to get that into their birthday fields in the address book? I guess it should be added to capabilities in the profile file, but what is the name of the capability?
Doesn't Hermes do this?
 
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#25
Lord Awesome: Maybe I installed it that way. It wasn't to be found in App Manager, however.

B10: Yup, Hermes does that (although it mixes up people with identical names), but with working Facebook and Twitter plugins to Contacts that can fill in the details, Hermes becomes obsolete.
 
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#26
Originally Posted by Palleman View Post
4. Edit the file /usr/share/telepathy/managers/haze.manager and add the following sections:
Code:
[Protocol facebook]
param-account=s required
param-password=s required
param-show-history=b
param-use-groups=b
param-hide-self=b
param-set-status-through-pidgin=b
param-get-notifications=b
param-notifications-feed-url=s
param-manage-friends=b
default-show-history=true
default-use-groups=true
default-hide-self=true
default-set-status-through-pidgin=false
default-get-notifications=false
default-notifications-feed-url=
default-manage-friends=false
According to http://launchpadlibrarian.net/29658036/haze.manager, the syntax above is incorrect (I've not tried to change it).

Also, after rebooting, already merged contacts showed up as independent contacts again (with "availability dots"). The merged contacts still had their Facebook IM accounts in their info (but without the "availability dots"). Remerging them did not create duplicate Facebook IM fields, and the "availability dot" returned to the merged contact (i.e. everything looked fine again). I will return with what happens with the remerged contacts after my next reboot.
 
Posts: 32 | Thanked: 4 times | Joined on Jan 2010
#27
Originally Posted by Palleman View Post
Hello there, Maemo community!

As a Communicator user since the dawn of time, I've now replaced my E90 with a N900. I miss the keyboard and the raisable display, but otherwise N900 is a nice little piece. This is my debute in the Maemo community. Say hi.

Anyway, now I've finally managed to get Facebook Chat to work as a plugin to the built-in Contacts/Conversations. As a bonus, I also got MySpace IM to work.

I did it without any coding, just editing or adding configuration entries and files (using other haze plugins as templates). Below is how I did it. The summary does not include basic Linux things like how to traverse the filesystem, how to edit files, how to gain root on N900 and similar. If you don't already know how to do those things, you're probably better off waiting for the protocols to be packaged and added to a repository. And if you know how to do those things, I'm sure that you also know how to make a backup (and how to reflash your phone). You've been warned.

There seems to be a lot of text below, but most of it is cut'n'paste, so use scp or ftp to transfer the files to a computer (with a real keyboard) for easier editing.

1. Download and install the Json package .deb required by the Facebook plugin (couldn't find it in any repository) as mentioned earlier in this thread.

2. Download the Facebook plugin from http://pidgin-facebookchat.googlecod...ookarm-1.64.so and put it in /opt/maemo/usr/lib/purple-2/
(Files for MySpace is already in place, but not enabled in the config files for some reason.)

3. Put a symlink to /opt/maemo/usr/lib/purple-2/libfacebookarm-1.64.so in /usr/lib/purple-2/

4. Edit the file /usr/share/telepathy/managers/haze.manager and add the following sections:
Code:
[Protocol facebook]
param-account=s required
param-password=s required
param-show-history=b
param-use-groups=b
param-hide-self=b
param-set-status-through-pidgin=b
param-get-notifications=b
param-notifications-feed-url=s
param-manage-friends=b
default-show-history=true
default-use-groups=true
default-hide-self=true
default-set-status-through-pidgin=false
default-get-notifications=false
default-notifications-feed-url=
default-manage-friends=false

[Protocol myspace]
param-account=s required
param-password=s required
param-server=s
param-port=i
default-server=im.myspace.akadns.net
default-port=1863
5. Add the file /usr/share/osso-rtcom/facebook.profile containing:
Code:
[Profile]
Manager=haze
Protocol=facebook
IconName = im-facebook
DisplayName = Facebook
ConfigurationUI = haze-plugin
SupportsInvisible = 0
Capabilities = chat-p2p, supports-alias, supports-avatars, supports-roster
VCardDefault = 1
VCardField = X-FACEBOOK
SupportedPresences = offline,available

[Presence available]
Name = Online
IconName = general_presence_online
Type = 2

[Presence offline]
Name = Offline
IconName = general_presence_offline
Type = 1
6. Add the file /usr/share/osso-rtcom/myspace.profile containing:
Code:
[Profile]
Manager=haze
Protocol=myspace
IconName = im-myspace
DisplayName = MySpace
ConfigurationUI = haze-plugin
SupportsInvisible = 0
Capabilities = chat-p2p, supports-alias, supports-avatars, supports-roster
VCardDefault = 1
VCardField = X-MYSPACE
SupportedPresences = offline,available

[Presence available]
Name = Online
IconName = general_presence_online
Type = 2

[Presence offline]
Name = Offline
IconName = general_presence_offline
Type = 1
7. Edit the file /home/user/.rtcom-accounts/accounts.cfg and add the following sections:
Code:
[haze/facebook/yourname_40yourdomain_2eyourtld0]
manager=haze
protocol=facebook
DisplayName=
param-password=yourpassword
param-show-history=true
param-use-groups=true
param-hide-self=true
param-set-status-through-pidgin=false
param-get-notifications=false
param-manage-friends=false
param-account=yourname@yourdomain.yourtld
Profile=facebook
condition=ip-route-1
Enabled=true
AvatarMine=
Nickname=yourname@yourdomain.yourtld
HasBeenOnline=true
NormalizedName=yourname@yourdomain.yourtld
ConnectAutomatically=true

[haze/myspace/yourname_40yourdomain_2eyourtld0]
manager=haze
protocol=myspace
DisplayName=
param-password=yourpassword
param-account=yourname@yourdomain.yourtld
Profile=myspace
condition=ip-route-1
Enabled=true
AvatarMine=
Nickname=yourname@yourdomain.yourtld
HasBeenOnline=true
NormalizedName=yourname@yourdomain.yourtld
ConnectAutomatically=true
Replace yourname, yourdomain and yourtld with the real ones from the email you are using as the Facebook/Myspace login, and replace yourpassword with your real password (in clear text). Make sure to keep _40 (for the @ sign), _2e (for any dots), and the 0 at the end!

8. Create the following directories, make them all owned by user:users and chmod them all to drwx------:
Code:
/home/user/.rtcom-accounts/haze/facebook
/home/user/.rtcom-accounts/haze/facebook/yourname_40yourdomain_2eyourtld0
/home/user/.rtcom-accounts/haze/myspace
/home/user/.rtcom-accounts/haze/myspace/yourname_40yourdomain_2eyourtld0
Same here: Replace yourname, yourdomain and yourtld with the real ones from the email you are using as the Facebook/Myspace login. Make sure to keep _40 (for the @ sign), _2e (for any dots), and the 0 at the end!

9. Reboot

Notes:

1. §7 and §8 might not be needed. After §6, the GUI for adding accounts recognized Facebook and MySpace, but the sign in button didn't work (it got grey and nothing happened). So I added the accounts the hard way. It still didn't work. So I rebooted, and then it worked. It might be that the reboot is enough, and after that you might be able to add accounts using the GUI.

2. I'm not sure that all the configuration entries above are actually doing what they seem to be doing. But I know that they all combined made the plugins work.


Issues:

1. The Facebook plugin only see online friends. But when your friends go offline, at least they stay in your address book (marked as offline). So after you and your friend have been online simultaneously once, they're in there (at least if you merge them or give them a firstname/lastname). Which, by the way, is the same behavior as in Pidgin on a PC, and I believe it's a Facebook Chat limitation.

2. I have 14 MySpace friends, but I only see 8 of them. They're all offline, so it's not for online/offline reasons. It might be due to the other 6 having IM disabled or something?

3. There are no advanced settings for the MySpace account The server and port settings in the configuration entries above aren't there (the view is empty after tapping the advanced settings button). I don't know where I found those two settings, but I remember that it was in some already existing file on the N900. The Facebook advanced settings configuration entries above are taken from the GUI after I got that part working (I just replaced spaces with dashes and made them all lowercase), so no promises that they do what they say..

4. Avatars don't work for MySpace (Facebook avatars and statuses work fine).

I have not tested chatting yet (no, it's true!), so all I know is that the above made my friends appear in the address book, and I can merge them with their existing address book entries. At least that means my N900 address book and Facebook/MySpace can understand eachother to some degree.

The above is taken from my memory. I don't trust my memory, so you should neither. I might have forgot something, or got something wrong. But if you like screwing things up (like me), go ahead and try the above.

Regards
/P
Excellent work, I'll test this tomorrow and let you know how I get on
 

The Following User Says Thank You to jaxxstorm For This Useful Post:
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#28
Originally Posted by Palleman View Post
Also, after rebooting, already merged contacts showed up as independent contacts again (with "availability dots"). The merged contacts still had their Facebook IM accounts in their info (but without the "availability dots"). Remerging them did not create duplicate Facebook IM fields, and the "availability dot" returned to the merged contact (i.e. everything looked fine again). I will return with what happens with the remerged contacts after my next reboot.
After reboot, the remerged contacts now have two identical Facebook IM fields. They're all offline now, but I guess they'll create yet another independent Facebook contact when they get online? So, merging the Facebookers doesn't seem to work that well...

I merged a bunch of new ones, and remerged a bunch of the reappeared ones. When some of the former remergers gets online, I'll reremerge a couple of them too. Then I'll reboot, and see what happens with the different iterations.

Merging the MySpacers seems to work fine (they don't reappear as independent MySpace contacts, and the MySpace IM fields of the merged contacts keep their "availability dots" (do those dots have a common accepted name?).

I haven't seen any of my 8 MySpace IM friends online since I got it working. In fact, I think I've never seen any of them online in any IM client on any platform ever. Maybe we've got some daring musicians here, with hundreds of active MySpace friends, that can do some MySpace testing?

/P
 
Posts: 20 | Thanked: 3 times | Joined on Jan 2010
#29
this works great I needed this.
 
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#30
A few days ago, a new version of pidgin-facebookchat was packaged for Maemo. Anybody tried that one? http://maemo.org/packages/view/pidgin-facebookchat/

/P
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:25.