Dear people,
Since Joomla 3.2.0 the Open Graphs for FB doesn't work when you enable Gzip.
Regards
I know but when GZIP is enable its not working. When GZIP is off its working fine!
Didn't fix it :(
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 ;)
Try this: https://github.com/dgt41/facebookfix
Thanks it works!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-06-10 08:05:45 |
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.
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.
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/
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!
Labels |
Added:
?
|
This link can help: https://developers.facebook.com/tools/debug/