How can we do open a popup for login facebook and after complete it will close?
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.