Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
94 views
in Technique[技术] by (71.8m points)

How to fix Facebook Circular Redirect?

I have a page that redirects to another page I'm trying to test my url on: https://developers.facebook.com/tools/debug

I get this error:

Errors That Must Be Fixed:
Circular Redirect:? Circular redirect path detected (see Redirect Path section for details).

Warnings That Should Be Fixed:
?The og:url property should be explicitly provided, even if a value can be inferred from other
tags.?
  1. How can I fix this problem?
  2. How to detect Facebook and, if it is Facebook, don't redirect?
question from:https://stackoverflow.com/questions/8229656/how-to-fix-facebook-circular-redirect

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I just resolved this by adding a "/" to the end of the Facebook url meta tag. So, changed

<meta property="og:url" content="http://domain.com/path"/>

to

<meta property="og:url" content="http://domain.com/path/"/>

and that did the trick!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...