inbasic / ignotifier

Multiple account Gmail notifier (without storing passwords)
https://webextension.org/listing/gmail-notifier.html
Other
396 stars 116 forks source link

Facebook integration #10

Closed ghost closed 11 years ago

ghost commented 12 years ago

Can we have notifications of any Facebook activity?

inbasic commented 12 years ago

You have to create a new filter to assign a label (tag) to all Facebook notifications in Gmail:

  1. http://support.google.com/mail/bin/answer.py?hl=en&answer=118708
  2. http://support.google.com/mail/bin/answer.py?hl=en&answer=6579

Now you can customize the RSS feed to get updates of that particular label. Assuming that the label name is "facebook" and you are willing to listen for facebook activities in your default Gmail account, then the feed looks like this: https://mail.google.com/mail/u/0/feed/atom/facebook

If you append this feed to the Gmail notifier feed list (Addon Manager -> Gmail notifier Options -> Gmail feeds), and restart your browser, you should be able to get updates. However, for now when you click on the toolbar icon you will be redirected to the inbox of that particular account: https://github.com/inbasic/ignotifier/issues/7

ghost commented 12 years ago

Granted, the only present way is such but I'd rather leave all Facebook email notifications turned-off. So, If it's okay, I'd like to keep this open here.

ghost commented 12 years ago

Sorry, closed it on accident.

inbasic commented 12 years ago

So you would prefer the extension to fetch notifications directly from Facebook account?

And are you aware that you can hide (archive) all the notifications matched to a filter in Gmail? So that means you can receive Facebook notifications in your Gmail account without cluttering the inbox

ghost commented 12 years ago

Yes, I would prefer if GMN would detect and treat any and all new activity at FB, even if as a single notification.

Thanks for enlightening me on the Gmail features, I was aware but thought that if auto-archived, GMN would not treat them as new. I will, in the interim, set this all up at Gmail and FB but It would be much more user friendly if GMN could support FB.

inbasic commented 12 years ago

It is now supported! Install the latest release: https://github.com/inbasic/ignotifier/tree/master/src

Go to http://www.facebook.com/notifications and copy the RSS link there. Append it to RSS feeds in Addon manager -> Gmail notifier -> Options. Then restart your browser.

ghost commented 12 years ago

Cool!

Can we try fine tuning it? GMN says FB (23), I click it and it opens the notification page where I see exactly 23 historical items. I sent myself an @facebook email and see it detected in FB with the white/red flag above the messages icon at the top. Left un-clicked (white/red flag still there), GMN checks for new and still says FB (23). I click the whit/red flag, view the msg, go back to the notification page and see no history of any message being received. Browser restarts, ample time given for updates, and GMN still says FB (23).

Can it be so it only detects there is a white/red flag above the three dark icons at the top (friend req, messages, & notifications)?

ghost commented 12 years ago

GMN is detecting new notifications and incrementing the count, it now says FB (25).

ghost commented 12 years ago

...but it's not detecting new friend request or messages

inbasic commented 12 years ago

It seems that Facebook has gradually started to limit the RSS feed access, see this post: http://www.techlifeweb.com/2008/12/16/how-to-find-your-facebook-status-rss-feed/

In the currently available RSS, there is no info about if the post is read or not which makes the feed useless.

I still believe the email solution is the best way to get the notifications.

ghost commented 12 years ago

Okay, upon reading that post you mentioned, http://www.techlifeweb.com/2008/12/16/how-to-find-your-facebook-status-rss-feed/, I changed "notifications" to "status" in the RSS link you had me copy/paste in the Add-on+more page and I got a new indicator in the Select Account window (in addition to the FB (25)), it was (1), but when clicked, it opened a blank tab. Also, somewhere along, I don't remember, I saw < >.

Anyway, I hope you don't loose interest in incorporating FB.

I've created the labels and filters at Gmail but, as I expected, if also archived, it is not detected. I had to leave them in the Inbox.

inbasic commented 12 years ago

Okay, so before putting RSS feeds into the feeds list, always try them in Firefox first. Just copy and paste the link and open it as a new Tab, you will see all the unread items.

For instance if you change "notifications.php" to "status.php" you get only one item which is: "Facebook Syndication Error", As I told you Facebook has limited the Feed access via RSS. "status.php" used to work fine, but now it is not accessible anymore.

Gmail issue:

For GMN to find new Facebook notifications, the filter must be set as: Skip the Inbox (Archive it) = true Mark as read= False Apply the label= facebook

Check the RSS feed in the browser to make sure it is directing to the right label, and then append it to feeds list. It should work fine then.

ghost commented 12 years ago

Okay, I got it. I appended "https://mail.google.com/mail/u/0/feed/atom/" and, like you said, all new Facebook stuff is only in it's Label as unread.

I'm guessing using the above append and Gmail's label / filtering feature is better than using the below since it appears, right now anyway, that Facebook RSS Feeds are limited. Or am I still confused here?

"Go to http://www.facebook.com/notifications and copy the RSS link there. Append it to RSS feeds in Addon manager -> Gmail notifier -> Options. Then restart your browser."

I still do prefer it if the extension itself would fetch notifications directly from Facebook.

inbasic commented 12 years ago

Use "https://mail.google.com/mail/u/0/feed/atom/" for inbox

Use "https://mail.google.com/mail/u/0/feed/atom/facebook" for Facebook notifications assuming that all the Facebook notifications are directly going to the "facebook" label.

The direct feed from Facebook doesn't work (https://www.facebook.com/feeds/notifications.php). Remove the feed from feeds list. Unless you know another notifier doing this, I cannot think of anyway to fetch notifications directly.