SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-12-18 00:31:24

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

[How-to]Get Facebook notifications on your desktop

I figured this out a while ago and thought I'd share how to get Facebook notifications to appear e.g. in Conky (the way I use this script)

The first step is to figure out what the url for your Notification RSS feed is.  To do this, click on the Notifications icon and click "See all notifications".  There, at the top, you'll see a link titled RSS.  Copy that link.

The second step is to save this script:

#!/bin/bash
numberoflines=5
address="$URL"
wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4" -q $address -O - | grep title | sed 's/<title>//g' | sed 's/<\/title>//g' | sed "s/\&apos\;/'/g" | sed 's/\&quot\;/"/g' | tail -n +2 | head -n $numberoflines

where $URL is the url you copied in the first step.

That's it!  Just run that script periodically to see your facebook notifications!

- Chaanakya


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

Help fund CrunchBang, donate to the project!

#2 2012-02-03 01:03:33

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: [How-to]Get Facebook notifications on your desktop

It works great thanks! I'm just curious though - is there anyway where it only shows new notifications, like the ones that light up on the webpage?


Punch all your friends.

Offline

#3 2012-02-03 10:16:21

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: [How-to]Get Facebook notifications on your desktop

^ all you're doing here is reading an RSS-feed from Facebook with all your Notifications. so to only have 'new' notifications shown, you'd have to use some sort of system for 'marking things read'... not sure how to accomplish something like that. maybe someone else has great ideas?

Offline

#4 2012-02-03 10:53:32

barrybarrykelly
Member
Registered: 2012-01-25
Posts: 34

Re: [How-to]Get Facebook notifications on your desktop

They have a pubdate attached

 <pubDate>Wed, 01 Feb 2012 13:29:26 +0000</pubDate>

You could add a button to the conky that writes out the time to a log file when it's clicked and only show notifications after that point, like a clear all button.

I'll give it a go when I finish work but I wouldn't expect too much from me lol my bash foo isn't up to much

Offline

#5 2012-02-03 16:25:17

mahatman2
#! Die Hard
From: Chattanooga TN
Registered: 2009-09-13
Posts: 551

Re: [How-to]Get Facebook notifications on your desktop

hm that's a pretty good idea! i'll see if i can get around to something like that as well smile


Punch all your friends.

Offline

#6 2012-02-15 15:09:05

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: [How-to]Get Facebook notifications on your desktop

I'm not sure if Conky is clickable, but the general idea sounds great!  I'll see if I can get around to it sometime, although college is quite challenging tongue


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#7 2012-02-16 02:39:59

BoredOOMM
#! Junkie
From: 36.0718,-119.03519
Registered: 2011-06-19
Posts: 353

Re: [How-to]Get Facebook notifications on your desktop


Congratulations, you've figured out the sound of one hand clapping...

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo