Topic-icon facebook keeps redirecting

Active Subscriptions:

None
14 years 6 months ago #16547 by activha
Hello
I just bought and configured JFBConnect and seems to have followed all the requests.
We have the template js_onyx from joomlashack. Our website is activ-ha.com the page is facebook.com/Activha and the application is apps.facebook.com/deals_activ_ha/

Our problem is that each time that the page is displayed within Facebook the page loads then is automatically redirected to the main website instead of being displayed within Facebook

This behavior does not occur with beez or atomic templates but we would like to keep js_onyx

Could you help us on this problem ?

Thanks
The topic has been locked.
Support Specialist
14 years 6 months ago #16551 by alzander
Replied by alzander on topic facebook keeps redirecting
Never heard of this problem before, actually. We'll definitely help you keep your template though. The reason it's breaking out of the App page is because JFBConnect tries to detect if the user has left the Facebook app area, and if so, it reloads the page to change some settings. For some reason, that check is causing your site to break out, always, which is abnormal.

Definitely strange that it works with beez and atomic as well.

We can help you debug it through this message area, but if it's possible for us to get admin access to the site, that will be best. Like I said, I don't know the cause off-hand, so being able to change a setting or two on your site will really help narrow it down. If so, please PM me an admin account. You can PM me by clicking the arrow under my picture (<----) and hitting the mail icon.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16704 by activha
Replied by activha on topic facebook keeps redirecting
Hi Alex, I sent you the details yesterday by PM
Thanks
Jean Claude
The topic has been locked.
Support Specialist
14 years 5 months ago #16735 by alzander
Replied by alzander on topic facebook keeps redirecting
Jean Claude,
Thanks for the PM. I never accessed the admin area and just did some more sleuthing. The issue on your site seems to be coming from your language switcher at the bottom of that page. I'm assuming that module only shows up in the onyx template.

The issue is that the following code is being inserted on the page:
if(top.location!=self.location)top.location=self.location;
That code is checking if the current page is inside a iFrame, and if so, it's reloading the page 'out' of the iFrame. All apps on Facebook are loaded in an iFrame, so you'll need to remove that code.

Hope that's all it takes!

Finally, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect, or our support. It's certainly not required, but very appreciated!
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16744 by activha
Replied by activha on topic facebook keeps redirecting
Well I changed the settings of the module GT Translate to revert to Google default and not redirect and this fixed the redirect thing.

Thanks a lot for that, however the template which is loaded within Facebook page lacks proper css it seems. Could you tell me if your code removes something when switching templates ? This is the same as our main website but the main theme css light-orannge is not loaded within Facebook page, only modules positions are displayed correctly.

Would this come from your code or from the way Joomlashack Wright templating system deal with css theme ?
See attachement

PS : just added a review to JEX :-)

Wright templating
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16780 by activha
Replied by activha on topic facebook keeps redirecting
I just checked and republishing JFBConnect solves the css not being loaded so it definitely comes from your plugin.

Are you sure that the variables for the templates are correctly transferred when selecting a template from JFBConnect ?
The topic has been locked.
Support Specialist
14 years 5 months ago #16785 by alzander
Replied by alzander on topic facebook keeps redirecting
Jean Claude,
When JFBConnect shows a reveal page, adds the &tmpl=component parameter to the URL so that only the article is shown. This disables other modules, as if they are enabled, the user can navigate away from the reveal page to other parts of your site.

If you want to remove the tmpl=component parameter, you can easily do so in the canvas.php file. Just search for "&tmpl=component" and remove it where you see it. Just make sure that on the resulting reveal page that you remove any links that users may use to navigate away.

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16789 by activha
Replied by activha on topic facebook keeps redirecting
No Alex the problem is not in the reveal page but in the normal page used in the canvas
Please have a look at apps.facebook.com/deals_activ_ha/ there is a bug somewhere in JFBConnect as unpublishing the plugin solves it
The topic has been locked.
Support Specialist
14 years 5 months ago #16798 by alzander
Replied by alzander on topic facebook keeps redirecting
What's the destination URL of the page you're loading in the Canvas so I can compare some things. The only styles we inject onto the page are to set the width and change a little bit of margin. You can disable that functionality by disabling the Automatic Resizing option in the Canvas tab.

Also, are you planning to get an SSL certificate? Every time I visit your canvas page, Facebook throws a lot of warnings. You'll need to get one for the majority of users to visit your app page.

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16801 by activha
Replied by activha on topic facebook keeps redirecting
the url is activ-ha.com/userprofile/demo.html it seems like the css file light_orange is missing somewhere when the JFBC plugin is activated

Yes we have a ssl I just need some time to install it on the server :-)
The topic has been locked.