The gist is there's no way of working out when a user has seen or hasn't seen a notification. The feed support in FB is VERY limited, it's pretty much just clean feed with no read/unread tags (they would make my life so much easier!). I think they want people to write things using facebook connect and custom applications on the facebook platform to do this kind of thing (that's how desktop facebook notifications apps work), but for now parsing the facebook help page (less fanciness than the home page but the same bar at the bottom with notifications) seems to be working fine, I know where the number for notifications appears and it was pretty easy to dig that out of the page... By the way, my extension has a memory leak, it increases by roughly 250kb a minute, which adds up to it sitting there at about 30mb a lot of the time up from 7mb, any chance somebody can have a look at my source and try and spot what my problem is? I'm pretty new to this so I'm sure it's something I'm just not noticing!
On Nov 9, 11:17 pm, Marcos Aruj <marcos.a...@gmail.com> wrote: > Maybe by grabbing the notification list, storing their ids in DB, and check > for their existence. > > Maybe Facebook's API has some utilities to get part of the notifications > list. > > > > > > On Mon, Nov 9, 2009 at 5:10 PM, OwenCM <owencmo...@googlemail.com> wrote: > > > I've had a hunt and there's no easy way of finding new notifications, > > only the list of current ones... > > > I've written an extension that works now, though it does load the > > facebook home page in the background and then just parses it. Can't > > find any other way right now, it could be more lightweight to just > > load up the mobile web page, but it doesn't seem like a much better > > solution. Oh well, if anyone can see a better way please let me know > > otherwise I'll just leave it like this :P > > > On Nov 9, 10:22 pm, Adam Shannon <a...@ashannon.us> wrote: > > > I don't think that loading facebook.com in the background would be a > > very good > > > security/phishing measure. I'm not sure but I would expect that facebook > > has a > > > push API, or just parsing an XML file and checking for new notifications > > would > > > work. > > > > On Sun, Nov 8, 2009 at 14:52, OwenCM <owencmo...@googlemail.com> wrote: > > > > > I've been playing around trying to get an extension to work like > > > > GReader and GMail notifications but for Facebook, but the crux of it > > > > is there doesn't seem to be a way of getting a feed of only new > > > > notifications so I can't work a way of picking up notifications... > > > > > Is there any chance somebody can give me a hand with some code (I'm > > > > decent HTML and have good background in VB6 etc but I'm no whiz in > > > > jQuery or anything) which can just loadwww.facebook.cominthe > > > > background and check for new notifications in the bottom left without > > > > allowing Facebook to remove them as read? > > > > > Or if anyone has another idea as to how this could work please do > > > > share :) > > > > > Thanks! > > > > -- > > > - Adam Shannon (http://ashannon.us) > > -- > Marcos Aruj Alvarez > Ingeniero de Software > ------------------------------- > marcos.a...@gmail.com > ----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensions@googlegroups.com To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---