Hi! I’m using Social Connect plugin for wordpress to login with facebook on my website.
The problem is i have to refresh the parent page by myself so it shows that im logged in.
so in Callback.php there is this script
[CODE]function init() {
window.opener.wp_social_connect({‘action’ : ‘social_connect’, ‘social_connect_provider’ : ‘facebook’,
‘social_connect_signature’ : ‘<?php echo $signature ?>’,
‘social_connect_access_token’ : ‘<?php echo $access_token ?>’});
window.close();
}
I put window.opener.location.reload(); before window.close, and now it refreshes the parent page when the popup closes, but it doesn’t log in anymore. How can that f**k up the whole thing? Any advice?