WordPress.org

Ready to get started?Download WordPress

Forums

Nextend Facebook Connect
Token Error (7 posts)

  1. simallindine
    Member
    Posted 1 year ago #

    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/

  2. Cagatay Belgen
    Member
    Posted 1 year ago #

    why don't they ever take a look at these posts? Nextend is deadend I think..

  3. simallindine
    Member
    Posted 1 year ago #

    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.

  4. Cagatay Belgen
    Member
    Posted 1 year ago #

    Thank you, that was fast as lightning :)

    Do you think I should disable "like" buttons? some codes interfering each other?

    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.

  5. Cagatay Belgen
    Member
    Posted 1 year ago #

    holy #### it suddenly worked. lol I didn't do anything :D

  6. simallindine
    Member
    Posted 1 year ago #

    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.

  7. Cagatay Belgen
    Member
    Posted 1 year ago #

    I will consider your warnings, thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic