Login with a facebook page (like stackover flow login)
===

I am planning to integrate the facebook login to my website.
I was able to do that..But,

From the userexpereince, I want to have a new window, That is (same flow like stack overflow login )
Webpage will have Facebook button.
when the use clicks that, IT should go to a new window (basically facebook url) when the use logs in there and facebook Accepts the Authentication, It should come back to my website.

    <p id="fb_login_button_1"><fb:login-button onlogin="checkFacebookLogin();" size="medium" scope="email">Sign in using Facebook</fb:login-button></p>


I have no Idea how to achieve this. I tried to search the documentation with no luck.

can you please let me know how to acheive this