Circular redirect path detected and wrong Open Graph data displayed

会有一股神秘感。 提交于 2020-01-14 03:37:06

问题


When sharing the following URL to Facebook

www.magicsoftware.com

You will get outdated information. Facebook refers to the site (magicsoftware.com/en) and takes all the information from the cache.

I tried to clear the cache by going to the dubugger- https://developers.facebook.com/tools/debug/og/object?q=www.magicsoftware.com

But that didn't help much.

Someone has an idea what I can do?


P.S - if you checked the debugger link, you would see that there are two critical errors mentioned:

Could Not Follow Redirect: URL requested a HTTP redirect, but it could not be followed. Errors That Must Be Fixed

Circular Redirect Path: Circular redirect path detected (see 'Redirect Path' section for details).

What does that mean?


回答1:


Your server is issuing redirect to the same URL as visited based on some condition, actually according to my tests on any requests that came without Accept-Language header get redirected.

See with Accept-Language header, and without any headers

Facebook linter doesn't seems to pass this header while crawling your OpenGraph meta and hung due to redirection loop.

You should avoid that redirection (or at least have some fallback) for Facebook linter to be able to collect updated data and update the cached version.




回答2:


Same thing is happening to me now. I have no redirect in place. but I am getting this message " there was an error following the redirect path." when using the debugger on this URL http://www.mmaid.co/cleaning-services/offers/coupons/social-discount.php I will give it time and see if it fixes itself.




回答3:


I found the solution myself - and it's only patience :)

Facebook just needs time to remove their cache files. So the solution is simply to use the Facebook Debugger to enter your URL and then to wait. Facebook will automatically refresh this URL cache.



来源:https://stackoverflow.com/questions/11106434/circular-redirect-path-detected-and-wrong-open-graph-data-displayed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!