Possible Duplicate:
How to reload a page using Javascript?
I have the Facebook login working correctly except for the redirect after the user logs in.
Calling it here:
else {
echo '<h3>Please login with your Facebook account</h3>';
echo '<p>';
$f1->displayLoginButton();
echo '</p>';
}
$f1->displayLoginButton() defined here:
function displayLoginButton() {
echo '<fb:login-button show-faces="false" width="600" max-rows="1" scope="publish_stream, manage_pages, email"></fb:login-button>';
}
I'm pretty sure I just need to reload the page using something like:
window.location.reload()
But I'm not too familiar with JS. Can someone point me in the right direction?