0
I have an App on Facebook, and the home page has a button for if the user is not logged in to Facebook, do the same. This button is a plugin of Facebook itself. I have read all the documentation of this plugin, and this login button specifically has a configuration called 'onlogin', for if necessary, I run some JS function after login is successfully processed.
Right after the login process was done, I needed the full page to be made one Reload simple. It’s that way (simple of everything!):
<script>
function reloadPage(){
window.location.reload();
}
</script>
Here is the plugin ready button where I call the function on onlogin
:
<div class="fb-login-button" data-max-rows="1" data-size="xlarge" data-show-faces="false" data-auto-logout-link="false" data-scope="email" onlogin="reload()"></div>
The case is that it just doesn’t work! How can I do it in some other way?
Your function name does not match what is on onlogin!
– bfavaretto