XF 1.5 [Help] Auto logout with facebook accounts

QuảngPB

Member
Hi everybody,

Recently, I met an error with my xenforo site.
Any user login with facebook account will auto logout immediately (after login success)
My site is: vntennis[dot]net (xenforo 1.5.1)

Any suggestion for me to fix this issue? :(

Thanks so much!
 

QuảngPB

Member
I found the position for fix this issue.
For anyone who meet the same problem with me, but just want to fix not upgrade for some reasons

Go to js\xenforo\
Open xenforo.js (for minified version)
Replace
Code:
(XenForo.Facebook.authResponse=b)&&!a.user_id?
XenForo._noSocialLogin||(XenForo.alert(XenForo.phrases.logging_in+"...","",8E3),setTimeout(function(){XenForo.redirect("index.php?register/facebook&t="+escape(b.accessToken)+"&redirect="+escape(g.location))},250)):!b&&a.user_id&&XenForo.Facebook.logout(null,!0)
by
Code:
if((XenForo.Facebook.authResponse = b) && !a.user_id){XenForo._noSocialLogin || (XenForo.alert(XenForo.phrases.logging_in + "...", "", 8E3),setTimeout(function() {XenForo.redirect("index.php?register/facebook&t=" + escape(b.accessToken) + "&redirect=" + escape(g.location))}, 250))}
For full version
Open js\xenforo\full\xenforo.js



Thanks
 
Top