• 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

Mike

XenForo developer
Staff member
#1
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.]
 

Attachments

Mike

XenForo developer
Staff member
#3
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.
 

Mike

XenForo developer
Staff member
#6
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.
 

Mike

XenForo developer
Staff member
#7
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).
 
#9
Guess you should update line 224 in library/XenForo/Application.php to force users to download the updates js file

PHP:
        self::$jsVersion = substr(md5(self::$versionId . $config->jsVersion), 0, 8);
 

Jeremy

Well-known member
#10
Guess you should update line 224 in library/XenForo/Application.php to force users to download the updates js file

PHP:
        self::$jsVersion = substr(md5(self::$versionId . $config->jsVersion), 0, 8);
That is updated upon each version.... self::$versionId changes upon every release. It is a numerical representation of XenForo's version.
 

Luke B

Active member
#11
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.
So this will work for 1.0.2 as well?
 
#14
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: