Viewing 1 replies (of 1 total)
  • Thread Starter Václav Greif

    (@vasikgreif)

    Found out how to do this, I put following code on my ‘Thanks for registration page’:

    <script type="text/javascript">
            jQuery(document).ready(function($) {
                $.ajaxSetup({ cache: true });
                $.getScript('//connect.facebook.net/en_UK/all.js', function(){
                    FB.init({
                        appId: '123456'
                    });
                    FB.getLoginStatus(function(response) {
                        if (response && response.status === 'connected') {
                            FB.logout(function(response) {
                            });
                        }
                    });
                });
    
                setTimeout(function() {
                    location.href = "<?php echo get_site_url()?>/";
                },4000);
            });
    
        </script>

    Might be nice feature to add to core…

Viewing 1 replies (of 1 total)
  • The topic ‘Logout from facebook after registration’ is closed to new replies.