Uhmmm... hi?

I wasn't sure where exactly this should be posted, but I think Facebook uses Javascript for their stuff... so...

I'm looking for some Facebook integration for a site I'm building.

Basic Idea:

User visits page => user clicks button => FB checks to see if they are a member of this group => Yes = user is taken to yes.php || No = user is taken to no.php

I hope that made sense. :S

I'll happily provide any other information I can to help make this easier.

Thanks to all!