Topic-icon Site Breaks In FB APP

10 years 2 months ago #40735 by mooreg42
The site I am using for my Canvas APP is www.accbattles.com

The facebook url is: apps.facebook.com/accbattleslive/

The site breaks in facebook

Have you seen this before
The topic has been locked.
Support Specialist
10 years 2 months ago #40744 by alzander
Replied by alzander on topic Site Breaks In FB APP
When I go to the https version of your site outside of Facebook, I run into a few issues:
www.accbattles.com/

First, I get a certificate error that the SSL is actually enabled for just:
accbattles.com/ (no www)
However, if I go to that URL, I'm automatically redirected to www. On that page, it looks just like it does within Facebook.. so it's not a Facebook thing.

My guess is that you have a few issues that need to be fixed:
1) Your SSL certifcate should be updated to be for www.accbattles.com and not the non-www version
2) Your stylesheets are likely loading over http:// and not https://. You should have your site load them with a relative path instead of a hardcoded path using http.

I hope that helps get you started on narrowing things down. If you have any questions or issues though, just let me know.

Thanks,
Alex
The topic has been locked.
10 years 2 months ago #40766 by mooreg42
Replied by mooreg42 on topic Site Breaks In FB APP
How do I achieve #2? from your response
The topic has been locked.
Support Specialist
10 years 2 months ago #40779 by alzander
Replied by alzander on topic Site Breaks In FB APP
That would depend on a lot of factors. If your template has the URLs hard-coded with http://, you'd need to fix those manually. That's almost always *not* the case, but if you created or edited the template yourself, that may be the cause.

Beyond that, it could be any of the following:
* You have the System - Cache plugin enabled (or some other caching). These caches will store the whole HTML for the page, and when it's later loaded over https, all the URLs included will still be cached as http.
* You have some other 'optimization' script installed which is fixing the URLs to http
* You have an SEF extension which is trying to setup all the URLs with full paths.

I hope that helps get you started, but if not, or you have other questions, just let me know.

Thanks,
Alex
The topic has been locked.