Gui vieira
Gui vieira

Reputation: 354

Facebook Open Graph: Can't Download - Could not retrieve data from URL

Everything was working fine when suddenly I started to get this Open Graph error on all pages:

http://n-pix.com

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fn-pix.com%2F

I've tried many suggestions from other questions, but nothing worked yet.

And if I save the static HTML from the page and load it on Open Graph debugger, everything works perfectly:

http://n-pix.com/ogtest.html

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fn-pix.com%2Fogtest.html

Any suggestions? Maybe something wrong with the headers?

Upvotes: 1

Views: 6179

Answers (1)

Gui vieira
Gui vieira

Reputation: 354

I've found the problem:

PHP GZIP compression was causing the problem. As soon I disabled it, the problem was solved and this explain the different behavior between dynamic and static pages.

I hope this can help more people in the future.

Upvotes: 10

Related Questions