Uninstalling the Facebook authentication plugin

Advanced and professional portal news Joomla template with community features and various content display layouts.
GK User
Sat Dec 22, 2012 2:32 pm
How do i completely uninstall the Facebook authentication plugin? I am using The World News II template but for facebook authentication, I am using JFBConnect instead. However, on certain pages like the homepage, even though I have disabled the "Authentication - Facebook" plugin, it is causing problems with the site.

When I login with facebook, on the homepage I see "[my name, my friends names] use GKF." instead of "use traveltherenext". On other pages it correctly shows traveltherenext. According to the JFBConnect plugin, the problem is caused because I have 2 facebook authentication plugins installed and they are conflicting.

So can I know how to completely uninstall the Facebook authentication plugin please? Do I need to manually delete any code? Thanks
User avatar
Fresh Boarder

teitbite
Sun Dec 23, 2012 1:50 am
Hi

The code for template's faceook is in /layout/blocks/social.php file. Please simply remove this part from this file:

Code: Select all
//<![CDATA[

      window.fbAsyncInit = function() {

      FB.init({ appId: '<?php echo $this->API->get('fb_api_id', ''); ?>',

         status: true,

         cookie: true,

         xfbml: true,

         oauth: true

      });

            

        <?php if($this->API->get('fb_login', '0') == 1) : ?>

        function updateButton(response) {

          var button = document.getElementById('fb-auth');

      

         if(button) {
            if (response.authResponse) {
               // user is already logged in and connected
            button.onclick = function() {
               if($('login-form')){
                  $('modlgn-username').set('value','Facebook');
                  $('modlgn-passwd').set('value','Facebook');
                  $('login-form').submit();
               } else if($$('.login form')[0]) {
                  $('username').set('value','Facebook');
                  $('password').set('value','Facebook');
                  $$('.login form')[0].submit();
               }
            }
         } else {
               //user is not connected to your app or logged out
               button.onclick = function() {
               FB.login(function(response) {
                  if (response.authResponse) {
                     if($('login-form')){
                        $('modlgn-username').set('value','Facebook');
                        $('modlgn-passwd').set('value','Facebook');
                        $('login-form').submit();
                     } else if($$('.login form')[0]) {
                        $('username').set('value','Facebook');
                        $('password').set('value','Facebook');
                        $$('.login form')[0].submit();
                     }
                 } else {
                   //user cancelled login or did not grant authorization
                 }
               }, {scope:'email'});     
               }
         }
       }

     }

     // run once with current status and whenever the status changes

     FB.getLoginStatus(updateButton);

     FB.Event.subscribe('auth.statusChange', updateButton);   

     <?php endif; ?>

   };

    //     
User avatar
Moderator


cron