How can we do open a popup for login facebook and after complete it will close? I want a popup that will open when anybody wants to sign-in using facebook or any social site login. The box pops up and will close after successful login or cancel

This is code I am using for this and I know something missing please give me some hint---

&lt;a href="https://www.facebook.com/dialog/oauth?client_id=MYCLIENTID&amp;amp;redirect_uri=http%3A//www.MYWEBSITE.COM/fboauth/connect&amp;amp;scope=email" class="facebook-action-connect" onclick="window.open(this.href,'popupwindow','width=700,height=500,scrollbar,resizable'); return false;"  target="_self" style="color: White; font-weight: bolder; cursor: hand; text-decoration: none"&gt;
You should try ulogin...
I hope this will solve your whole problem.
:)

Description:-
uLogin service allows your users to login using their accounts at:

Facebook,
Twitter,
Google,
Windows Live ID,
LinkedIn and various open id.