Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Facebook Applet: Ready for Testing
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Facebook Applet: Ready for Testing
Page : 1 2
jesuisbenjamin English 24 Guest [Read]
02 December 2011 à 15:57

jesuisbenjamin, Wednesday 20 April 2011 à 13:45


Subscription date : 28 October 2009
Messages : 415
Hello!

I worked on an applet to check Facebook accounts and deliver notifications. It is basically a frontend for FBCMD (http://fbcmd.dtompkins.com/installation)

Now please test it and let me know whether it works or if there are bugs.

You can download the applet from here: http://dl.free.fr/pGWH3LIvZ [version.1.11.04.20.2 uploaded at 5:35 pm]

More improvements are already planned for future versions:

  • entering your status from dock
  • full-length message notifications
  • ect :)

matttbe, Wednesday 20 April 2011 à 21:36


Subscription date : 24 January 2009
Messages : 12573
Hello,

First of all, thank you for this applet
But I've a few comments/questions/ideas:
  • It seems it's not easy to test it
    • we need an active facebook account
    • We need FBCMD and it's seems we have to do same by ourselves (=> so if we try it, it's will not work and is there any message?)
    • But we need php to use it (it's not light... )
  • Why don't you use a python module? I guess there are a few available modules. pyfacebook? apt-cache search facebook gives me libsocialweb, libwww-facebook-api-perl, python-facebook, libmojito but also some modules of gwibber and pidgin. (about pyfacebook, there are a few examples (e.g. here but it's maybe a bit too old... I hope not )
  • Your hack to display an emblem with the number of unread messages is interesting but it can be better if we can do that easily => @fabounet
  • Can I add you applet on our cairo-dock-plug-ins-extras bzr branch? Or not? Or do you want to add it by yourself and create a merge proposal?
  • Do you want to use BZR? If yes, you can have a look to our wiki => Documentation or directly => Help us with BZR
    • It's not hard to use BZR. In fact and after having uploaded your public ssh key, you just have to use bzr add to add a new file or bzr rm to remove another one, bzr commit -m "My Applet: A message" to create a new revision and bzr push lp:~your_nick/cairo-dock-plug-ins-extras/your_applet to upload it on launchpad (and then propose your branch for merging on the trunk.)

jesuisbenjamin, Wednesday 20 April 2011 à 21:49


Subscription date : 28 October 2009
Messages : 415
matttbe :

We need FBCMD and it's seems we have to do same by ourselves (=> so if we try it, it's will not work and is there any message?)

The applet should guide you through the installation. Or did it not?

matttbe :
But we need php to use it (it's not light...Why don't you use a python module? I guess there are a few available modules. pyfacebook? etc.

Sure. I am too novice in computing / programming to be able to assess that kinds of matters. I just jumped on the keyboard and decided i'd make an applet I'll look into other engines as you suggested. I'll try to improve the applet to get more functions out of it, i'll need an engine that's complete. We'll see about that.

matttbe :
Your hack to display an emblem with the number of unread messages is interesting but it can be better if we can do that easily => @fabounet

I'm not sure what you mean by "if we can do that easily", what do you mean by that? To make an API? (One major flaw of SVG at the moment is that it's not possible to describe objects' position in relative positioning. It was an issue for the one/two digit numbers. But i worked my way around it as you can see. Another option would be to make two different layers and switch depending on the number to display.

matttbe :
Can I add you applet on our cairo-dock-plug-ins-extras bzr branch? Or not? Or do you want to add it by yourself and create a merge proposal

Sure! You know the stuff better than me Go ahead.

matttbe :
Do you want to use BZR?

I'm still not quite sure i understand what the BZR is/does i'll look into it

matttbe, Wednesday 20 April 2011 à 22:09


Subscription date : 24 January 2009
Messages : 12573
The applet should guide you through the installation. Or did it not?
Oh great (I didn't test it because of that: we need an active facebook account )

I'll look into other engines as you suggested
Yes because it's easier to install a python module from repositories!

I'm not sure what you mean by "if we can do that easily", what do you mean by that?
I already proposed to add the possibility to customise these "quick-info", to change the background, the size, the form, the position, etc.

I'm still not quite sure i understand what the BZR is/does i'll look into it
As say wikipedia, Bazaar is a distributed revision control system, designed to make it easier for anyone to contribute to free and open source software projects. You can easily create new revisions which contains a few modifications and share them with other people. You can easily have a look to the differences between each revision, you can create your own fork, etc. It's a bit like Git (or SVN but less) => https://code.launchpad.net/cairo-dock
EDIT: => all cairo-dock-plug-ins-extras branches

matttbe, Thursday 21 April 2011 à 01:01


Subscription date : 24 January 2009
Messages : 12573
This applet is now available on lp:cairo-dock-plug-ins-extras (rev 160).

Feel free to test it and report any bugs, suggestions, questions, etc. here!

@ jesuisbenjamin: Thank you!

jesuisbenjamin, Thursday 21 April 2011 à 01:03


Subscription date : 28 October 2009
Messages : 415
Hey btw i didn't manage to install the bzr version...

matttbe, Thursday 21 April 2011 à 01:23


Subscription date : 24 January 2009
Messages : 12573
i didn't manage to install the bzr version...
Oh
do you want to install Cairo-Dock with this script: cairo-dock_bzr.sh or do you want to install bzr (simply launch this command: sudo apt-get install bzr)

jesuisbenjamin, Thursday 21 April 2011 à 01:27


Subscription date : 28 October 2009
Messages : 415
matttbe :
i didn't manage to install the bzr version...
Oh
do you want to install Cairo-Dock with this script: cairo-dock_bzr.sh or do you want to install bzr (simply launch this command: sudo apt-get install bzr)


1st: i want to install cairo-bzr version, followed the steps from wiki but no amount of updates seems to make the difference.

matttbe, Thursday 21 April 2011 à 01:45


Subscription date : 24 January 2009
Messages : 12573
You can use a script: http://www.glx-dock.org/ww_page.php?p=From%20BZR&lang=en#3-Debian / Ubuntu
But you can also only install bzr and download the cairo-dock-plug-ins-extras branch.
mkdir ~/cairo-dock
cd ~/cairo-dock
sudo apt-get install bzr -y
bzr branch lp:cairo-dock-plug-ins-extras
cd cairo-dock-plug-ins-extras/Facebook
If it doesn't work, you can post the error here

But if you doesn't want to use bzr, do what you want but it's just easier and quicker for us

jesuisbenjamin, Thursday 21 April 2011 à 02:10


Subscription date : 28 October 2009
Messages : 415
ok got it

PS i looked into all kinds of Facebook from command line. Python-Facebook (aka. pyfacebook) has several dependences and i already get bugs at import.
Others are really basic like the perl Facebook API, i don't want to re-invent the wheel. So i'll look more into the Python-Facebook option and see how smoothly it goes.

matttbe, Thursday 21 April 2011 à 08:33


Subscription date : 24 January 2009
Messages : 12573
I think it can be better to use a python module but if it's not possible... It's not possible

matttbe, Thursday 21 April 2011 à 19:50


Subscription date : 24 January 2009
Messages : 12573
matttbe :
jesuisbenjamin :
I'm not sure what you mean by "if we can do that easily", what do you mean by that?

I already proposed to add the possibility to customise these "quick-info", to change the background, the size, the form, the position, etc.
There you can find a mockup: http://www.glx-dock.org/bg_topic.php?t=5093

jesuisbenjamin, Thursday 21 April 2011 à 22:58


Subscription date : 28 October 2009
Messages : 415
OK, i just made an update of the code to improve the emblem.
Now what am i supposed to do with BZR? Upload the files? Then what happens?
PS: i did something, not used to it, let me know if it works.

matttbe, Thursday 21 April 2011 à 23:31


Subscription date : 24 January 2009
Messages : 12573
If you've downloaded the bzr branch (and if you've a Launchpad account, if you've uploaded your ssh public key, changed your name with bzr whoami, etc. => have a look to: Help us with BZR) and if you want to use it :
cd cairo-dock-plug-ins-extras/Facebook
# check if you've the latest version
bzr pull
# check if your modifications seems correct
bzr status
# if you want a diff: bzr cdiff ## or bzr diff
# add new files if any with bzr add my_file
# commit your changes
bzr commit -m "Facebook: Improved the emblem"
bzr push lp:~YOUR_NICK/cairo-dock-plug-ins-extras/Facebook
Then go there: https://code.launchpad.net/~YOUR_NICK/cairo-dock-plug-ins-extras/Facebook and click on this link "Propose for merging".

But if you don't like it, you can also use a BZR plug-ins like BZR-GTK (with an integration plug-in for Nautilus), ground-control, bzr-explorer or a plug-in for Gedit, etc.

Or you can simply send here a link to a tarball

matttbe, Thursday 21 April 2011 à 23:36


Subscription date : 24 January 2009
Messages : 12573
About Ground Control, you can have a look there: http://ground-control.org/, there are a few screencasts.

jesuisbenjamin, Thursday 21 April 2011 à 23:51


Subscription date : 28 October 2009
Messages : 415
OK i messed up but now i'm ok i think.

matttbe, Friday 22 April 2011 à 00:07


Subscription date : 24 January 2009
Messages : 12573
Merged

As you can see, now we can have a complete log, a tracking of your changes, etc. => https://code.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins-extras/third-party

Now you can simply launch this command to sync your branch with the trunk:
bzr pull
(Also, don't forget to launch this command just before any commit to prevent any conflicts, etc.)

fabounet, Friday 22 April 2011 à 16:50


Subscription date : 30 November 2007
Messages : 17118
Your hack to display an emblem with the number of unread messages is interesting but it can be better if we can do that easily

well, the Quick-Info is made for that

especially, I think it's important that all applets have the same look, so it's better using it.

about the code, I didn't check (again, facebook acount... ), but I've read the code.
+1 for a python module easy to install

also, you should use the run method, and not triggering yourself the begin method, nor calling gtk.main()

jesuisbenjamin, Friday 22 April 2011 à 16:57


Subscription date : 28 October 2009
Messages : 415
fabounet :
well, the Quick-Info is made for that especially, I think it's important that all applets have the same look, so it's better using it.

My applet gives the choice to use either emblem or quickinfo. Keeping the same look for all applets is a relative understanding, this emblem matches that of my theme

fabounet :
+1 for a python module easy to install

Well pyfacebook is not easy to install, it's buggy and the team's not very active if i judge from the dates on their git site.
I'm thinking of connecting to Gwibber through Dbus instead: have questions about this btw see http://www.glx-dock.org/bg_topic.php?t=5321&pos=40#mess_66812

fabounet :
also, you should use the run method, and not triggering yourself the begin method, nor calling gtk.main() :)

I was wondering why the begin() method did not start on its own?? I'll try that.
I need to call the gtk.main() apparently if i want the glib.TimeOut() to function (threading). If you know how to make it work without, please let me know.

fabounet, Thursday 28 April 2011 à 17:02


Subscription date : 30 November 2007
Messages : 17118
run() does the job

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Facebook Applet: Ready for Testing
Page : 1 2
jesuisbenjamin English 24 Guest [Read]
02 December 2011 à 15:57


Glx-Dock / Cairo-Dock List of forums Applets | Applets Facebook Applet: Ready for Testing Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.