The long story
I'm currently working on a site, that restricts some of its content to registered users (users, who have filled the registration form) and facebook users (who have authorized the site to access their informatin). I'm using a cookie to store which type of login was used the last time the user was on that site. 0 stands for "no previous logins" or "user logged out", 1 for "registered user" and 3 for "facebook user". If a facebook user has logged in to their facebook account, I want the site to log the user in ONLY if the cookie is "2" (the previous login was done using facebook login). Otherwise, I want the user to click "facebook login" button. By default, it opens a popup and closes it immidietly. How can I prevent the popup from showing up at all and sending the user to a specific URL instead?
For those who don't understand my messy talk or just want to get to the point
I have a facebook login button (<fb:login>) and instead of a popup, I need it to redirect the user.