Title: Token Error
Last modified: August 20, 2016

---

# Token Error

 *  [simallindine](https://wordpress.org/support/users/simallindine/)
 * (@simallindine)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/token-error-1/)
 * Great plugins, thanks.
 * I’m having an intermittent problem with facebook connect. Every few logins I,
   or my users, get an error:
 * > ‘Caught exception: An active access token must be used to query information
   > about the current user.’
 * The rest of the time it works great. Have you any ideas what might be causing
   this?
 * Thanks,
 * [http://wordpress.org/extend/plugins/nextend-facebook-connect/](http://wordpress.org/extend/plugins/nextend-facebook-connect/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Cagatay Belgen](https://wordpress.org/support/users/belgen/)
 * (@belgen)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/token-error-1/#post-3560623)
 * why don’t they ever take a look at these posts? Nextend is deadend I think..
 *  Thread Starter [simallindine](https://wordpress.org/support/users/simallindine/)
 * (@simallindine)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/token-error-1/#post-3560624)
 * Okay, this problem went away for me after I went through the Facebook developer
   docs and made sure that the facebook init wasn’t firing twice.
 * If you’re using like buttons and initialising the facebook script against the
   same app as nextend then I *think* that causes the problem.
 * My advice is to read through the FB dev docs, and some of the Facebook developer
   forums, and load the facebook script in async mode with a check to see if the
   FB object has already been initialised.
 * At the same time I TOTALLY agree with you that Nextend should respond to these
   forum posts. The lack of any interaction from the plugin developers will rapidly
   turn this into a dead end for all.
 *  [Cagatay Belgen](https://wordpress.org/support/users/belgen/)
 * (@belgen)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/token-error-1/#post-3560625)
 * Thank you, that was fast as lightning 🙂
 * Do you think I should disable “like” buttons? some codes interfering each other?
 * [http://www.outdoorhaber.com](http://www.outdoorhaber.com)
 * This is where I try to use nextend. At the very top, you will see “Giris Yap/
   Kayit Ol” (login/register)
    please click, you will see an image button (image
   link) When you click the image, you’ll get the error.
 *  [Cagatay Belgen](https://wordpress.org/support/users/belgen/)
 * (@belgen)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/token-error-1/#post-3560626)
 * holy #### it suddenly worked. lol I didn’t do anything 😀
 *  Thread Starter [simallindine](https://wordpress.org/support/users/simallindine/)
 * (@simallindine)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/token-error-1/#post-3560627)
 * Hey Belgen,
 * Cool that it worked, still worth checking your FB init code for your like buttons,
   it should look something like:
 *     ```
       <div id="fb-root"></div>
       <script>
         window.fbAsyncInit = function() {
           FB.init({
             appId      : '***************', // App ID from the App Dashboard
             channelUrl : 'http://www.yourdomain.com/channel.php', // Channel File for x-domain communication
             status     : true, // check the login status upon init?
             cookie     : true, // set sessions cookies to allow your server to access the session?
             xfbml      : true  // parse XFBML tags on this page?
           });
         };
         (function(d, debug){
            var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
            if (d.getElementById(id)) {return;}
            js = d.createElement('script'); js.id = id; js.async = true;
            js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
            ref.parentNode.insertBefore(js, ref);
          }(document, /*debug*/ false));
       </script>
       ```
   
 * It’s well worth having a channel file on your site and making sure that it’s 
   wrapped in the window.fbAsyncInit function. These things seem to help for me.
 *  [Cagatay Belgen](https://wordpress.org/support/users/belgen/)
 * (@belgen)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/token-error-1/#post-3560628)
 * I will consider your warnings, thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Token Error’ is closed to new replies.

 * ![](https://ps.w.org/nextend-facebook-connect/assets/icon.svg?rev=3336394)
 * [Nextend Social Login and Register](https://wordpress.org/plugins/nextend-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-facebook-connect/reviews/)

## Tags

 * [nextend](https://wordpress.org/support/topic-tag/nextend/)

 * 6 replies
 * 2 participants
 * Last reply from: [Cagatay Belgen](https://wordpress.org/support/users/belgen/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/token-error-1/#post-3560628)
 * Status: not resolved