Thanks for working after hours on this! I see what you mean about the ref=fb query string, it seems to only appear when a user has recently been on the Facebook tab created by JFBConnect. Do you know how long those user sessions are set to? Or is it defined by the "User Session" parameter in Joomla's global config?
I did notice a couple of strange things...
1. If I visit the Facebook tab, and then go to the RidePros homepage, none of the homepage content modules appear, I only see the footer modules (Menu Module, Follow Us, and Footer Links) . This looks like an Item ID problem, as the "Home" link isn't being indicated as the active menu item (You can see the "Home" link if you're logged in on the front end). My guess is the code you added to kick the page out of the redirect loop is losing the Item ID.
2. I see the Facebook tab page has the "Articles" H1 at the top, as well as a module and a RocketTheme logo in the footer. Neither of those should be there, I've got those features turned off on the pages being ported to the tab page, and the CSS was cleaned so there shouldn't be any gray coloring around the images. Here are the non-sef URL's I'm trying to pass:
Fan Gate Page =
www.ridepros.com/index.php?option=com_co...lang=en&view=article
Fan Page =
www.ridepros.com/index.php?option=com_co...lang=en&view=article
If you click those links, you'll see it's the default Gantry template and there aren't any other features loading on the page... no logo, menu, modules, etc, just the images. Not sure if there's a way to pass those exact URLs to the tab pages, but if so, it would ensure that the pages show up correctly on Facebook.
Other thoughts.... I checked the CSS of the code showing up on the Facebook tab and some classes appear to be missing. In Gantry, you can choose a template "Profile" and assign it to different menu items. This lets you apply CSS rules and other Gantry features on a per-menu-item basis. In the <body> tag at the top, it should have the class "cssstyle-style4", but I don't see it in the Facebook tab (it is in the non-SEF URLs above). This makes me think that the template "Profile" value is not getting passed to the Facebook iframe, which could be why it's not displaying as I thought it would.
I hope this feedback helps, let me know if anything needs clarification. And thanks again for the assistance!