Closed confile closed 11 years ago
You could use FB.getLoginStatus()
from Facebook Javascript SDK during the initialization.
<facebook:initJS appId="${facebookContext.app.id}">
// Put here any JS code to be executed after Facebook JS initialization
<g:if test="${!facebookContext.authenticated}">
FB.getLoginStatus(function(response) {
if (response.authResponse) {
window.location.reload();
}
});
</g:if>
</facebook:initJS>
This will automatically reload the page after autologin if the user is already connected on Facebook.
When I use your plugin login button
it works perfect for login. But what if the user has closed the browser after login (without logout), how can I loggin him based on the facebook cookies with your plugin?
How do you do that?