Topic: [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/\"\;/"/g' | tail -n +2 | head -n $numberoflineswhere $URL is the url you copied in the first step.
That's it! Just run that script periodically to see your facebook notifications!
- Chaanakya
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral 660e787ff1