I want to do the same. I'm not worried about people without js, but facebook-js files load very slowly, and it slows down my entire site. Facebook does not work without js, so I think everyone who wants to login to facebook on your site supports js.
But to the question. There is one method in PHP-lib called get_login_url that you can use to get the input URL for your application.
$connectUrl = $fb->get_login_url("http://www.yoursite.com/loggedin.php",0);
So you can create your own connection button that links to this url. As soon as the user is signed in to facebook, he will redirect him back to the URL you specified. If the user is already connected to the Internet, he will be immediately redirected.
, , , facebook, . Havn't - javascript, , - .