I would prefer to see this done using the Facebook Graph API and not the mechanize library. Getting the oauth key seems to be tricky. I would like to see someone come up with a creative solution for scripting the Facebook API. Are you up to it?
Ya the main issue I ran into was getting an oauth key. Using a master for the framework would probably be quickly revoked, and asking all of your users to get their own might be a stretch, which is why I turned to mechanize. I'll start poking around though and let you know.
Haven't had the time to look at it recently. I checked into the various
cookies present once you log in, none of those allows you to jump over
to the graph api directly. However, if you maintain that session
through mechanize (or whatever you log in with), you can access the
graph search. It will probably still be slower though...