1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Facebook users get logged off constantly

Discussion in 'Resolved Bug Reports' started by Mike, Dec 8, 2011.

  1. Mike

    Mike XenForo Developer Staff Member

    This is due to a Facebook API change that will be going (has gone) live starting the week of December 12th.

    To prevent this issue in 1.0.4 or 1.1.0, open the attachment. Go into the directory that corresponds with your version. You'll find xenforo.js. You need to upload this to the js/xenforo directory in XenForo, overwriting the version that is there. You will now be using the newer Facebook API for auth.

    If you applied the fix I previously posted and wish to overwrite it with this version, you need only follow the instructions posted above.

    [Edit Dec 9, 18:05 GMT: patched JS files updated. Follow instructions above.]

    Attached Files:

    trilogy33, Saeed, Jeremy P and 3 others like this.
  2. majdi

    majdi Well-Known Member

    can you upgrade the 1.0.x branch too please. I dont want to upgrade to 1.1 yet.
  3. Mike

    Mike XenForo Developer Staff Member

    That fix should apply to 1.0 as well (provided FB doesn't remove the old support). I will likely be posting patched xenforo.js files for both branches.
    Floris likes this.
  4. Hoffi

    Hoffi Well-Known Member

    Apply it here on XF.com, too. It happens this second. ;)
  5. Mike

    Mike XenForo Developer Staff Member

    The proper/full fix is applied here and it works fine for me.
  6. Mike

    Mike XenForo Developer Staff Member

    I have posted a different fix which contains patched js/xenforo/xenforo.js files for 1.0.4 and 1.1.0. You can simply overwrite the existing version with that to prevent this issue from occurring next week. See the first post.
  7. Mike

    Mike XenForo Developer Staff Member

    As of this post, I have updated the zip file in the first post again. This fixes another potential infinite loop issue (with log ins).
    Bram likes this.
  8. Scott

    Scott Active Member

    The change to Facebook is going live again on Tuesday afternoon Pacific.
  9. Espen Espelund

    Espen Espelund Active Member

    Guess you should update line 224 in library/XenForo/Application.php to force users to download the updates js file

            self::$jsVersion substr(md5(self::$versionId $config->jsVersion), 08);
  10. Jeremy

    Jeremy Well-Known Member

    That is updated upon each version.... self::$versionId changes upon every release. It is a numerical representation of XenForo's version.
  11. Luke B

    Luke B Active Member

    So this will work for 1.0.2 as well?
  12. Mike

    Mike XenForo Developer Staff Member

    No. Or at least, it's not been tested. I can only recommend upgrading to at least 1.0.4.
  13. Luke B

    Luke B Active Member

    Dang, okay
    I should just upgrade already :)
  14. seneca

    seneca Member

    Ok, downloaded and uploaded and I was prompted to overwrite, which leads me to assume that I got this uploaded to the correct place, but I still get an error. :confused:
  15. tvich

    tvich Member

    yes it didnot worked for me,,i am using Xenforo 1.0.4

Share This Page