I use Facebook to login with Facebook. This works fine, but I use it in a popup after registration is complete. The popup should be closed and the main page should be reloaded, but this does not happen. I used this script to open a popup
<script type="text/javascript"> function setPopUp(){ window.open("sign-in.php?fbLogin=1", "loginWindow", "location=1,status=1,scrollbars=1, width=400,height=400"); } </script>
and script to close the window on the cover page and on the login page
<script type="text/javascript"> window.location.close; window.opener.top.location.reload(); </script>
please help me do this
source share