如何修复Facebook通告重定向? [英] How to fix Facebook Circular Redirect?

查看:110
本文介绍了如何修复Facebook通告重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面重定向到另一个页面 我正在尝试测试我的网址: https://developers.facebook.com/tools/debug

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

我收到此错误:

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. 如何解决此问题?
  2. 如何检测Facebook,如果是Facebook,请不要重定向?

推荐答案

我刚刚通过在Facebook url元标记的末尾添加"/"来解决此问题.所以,改变了

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"/>

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

就成功了!

这篇关于如何修复Facebook通告重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆