I’m using Facebook connect on my website and use a pop-up for the login process. Once completed, I have Facebook redirect users to login.php on my website where I update the database. Once done, the script echoes this:
echo "<script type='text/javascript'>
window.close();
window.opener.location.reload();
</script>";
This works fine on every other platform/device but the ipad. I’ve tried looking for a solution but have had no luck.
Any and all help will be appreciated.
Thank you!
window.close() doesn’t work on iOS after window.open()ing or target=”_blank”? do setTimeout(window.close, timeout); where timeout > 300.
Source