?
avatar Sixi1989
Sixi1989
26 May 2014

Dear people,

Since Joomla 3.2.0 the Open Graphs for FB doesn't work when you enable Gzip.

Regards

avatar Sixi1989 Sixi1989 - open - 26 May 2014
avatar dgt41
dgt41 - comment - 28 May 2014
avatar Sixi1989
Sixi1989 - comment - 28 May 2014

I know but when GZIP is enable its not working. When GZIP is off its working fine!

avatar Sixi1989
Sixi1989 - comment - 28 May 2014

Hereby some screenshots one is without GZIP and the other with GZIP

without-gzip
with-gzip

avatar Sixi1989
Sixi1989 - comment - 28 May 2014

Didn't fix it :(

avatar dgt41
dgt41 - comment - 28 May 2014

Turns out that Facebook scraps ALWAYS the first 40k of data of a given page. That means if your page is more than that (the compressed one) then it will be partially downloaded, and because is compressed it will be broken. Needs some logic so that when the request is from Facebook, page will not be compressed ;)

avatar dgt41
dgt41 - comment - 29 May 2014
avatar Sixi1989
Sixi1989 - comment - 2 Jun 2014

Thanks it works!

avatar dgt41
dgt41 - comment - 2 Jun 2014

:+1:

avatar dgt41
dgt41 - comment - 10 Jun 2014

@Sixi1989 Can you please close this, as this is not a Joomla! problem and also there is a solution in extensions directory (facebookfix)?

avatar Sixi1989 Sixi1989 - close - 10 Jun 2014
avatar zero-24 zero-24 - close - 10 Jun 2014
avatar Sixi1989 Sixi1989 - change - 10 Jun 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-06-10 08:05:45
avatar Sixi1989 Sixi1989 - close - 10 Jun 2014
avatar CavySpirit
CavySpirit - comment - 11 Feb 2015

The extensions to fix this do not seem to work ( they aren't working for me ) and I can find no other solution, so this should be an open issue.

avatar Bakual
Bakual - comment - 11 Feb 2015

It's a Facebook issue. It's not a Joomla issue. You should open an issue in Facebook.
What the fix does is disabling GZIP if the request comes from Facebook. Which is quite a hack if you ask me and I don't want to start adding such hacks into our code only to cope with bugs in other software.

avatar brianteeman
brianteeman - comment - 11 Feb 2015

The user posted on the forum that they had resolved the issue - they had
system cache on

On 11 February 2015 at 19:13, Thomas Hunziker notifications@github.com
wrote:

It's a Facebook issue. It's not a Joomla issue. You should ôpen an issue
in Facebook.
What the fix does is disabling GZIP if the request comes from Facebook.
Which is quite a hack if you ask me and I don't want to start adding such
hacks into our code only to cope with bugs in other software.


Reply to this email directly or view it on GitHub
#3643 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar CavySpirit
CavySpirit - comment - 11 Feb 2015

I came back here to update my post. Yes, it was determined that the system cache plugin conflicted with the fix plugin. It wasn't a facebook issue per se. I had already used Facebook's debugging tool to try to figure out the problem. Apparently (and I'm posting this for others that run into the same problem and land here like I did), the system cache plugin is it's own separate thing (thank you Brian - I appreciate the post on the forum) and is not needed to be enabled for the main Joomla cache to work (my erroneous assumption) and it's for pretty static sites for caching pages. So not a performance concern on turning it off. The fix plugin code seems very straightforward. I can't imagine choosing between slowing my site down versus the ability to share content on Facebook. Both are very important for me. Massively glad it's sorted out. Thank you!

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment