This is split of the thread below for a site where user clicks on a link, which forces them to the login page, but then redirection doesn't bring them back to the proper page:
www.sourcecoast.com/forums/jfbconnect/jf...t/2631-redirect-loop?
Daniel,
I just got into the site to diagnose the current issues with JFBC4.0 that you're seeing. Immediately, on the front-end, I noticed multiple Javascript errors that were preventing me from logging in. In your template, I set the "Optimize JS" setting to "No", instead of "Join & Minify & Compress". That cleared up the issues in JFBConnect, as well as some others that weren't related to JFBConnect.
I can now successfully login. However, it does look like when I try to click any "Download" links, and am redirected to the login page, I'm not redirected back to the proper page when I click Login With Facebook.
Can you do a little testing, and let me know the following:
1) Do you have anything setup on your page to control redirects during logging in (other than JFBConnect's settings)? I can't figure out why I'm going to the page I'm going to when I login, and it doesn't always seem consistent. I think it's related to #2..
2) Please disable any caching you have enabled and test. I think the setting in the Global Config is part of the problem. If so, we can figure out a way around it, but would like more info on changes in behavior with that, and you know your site much better than us.
I'll need to check our code and figure out the best way to interpret the return variable in the URL when on the Login page to make sure we use that. Another user asked something similar, and with 4.0, it should be a lot easier to catch and use that variable.
Hope this helps get you started, and we'll get you fixed up soon.
Thanks,
Alex