Linter给出“错误解析URL”错误 [英] Linter gives "Error parsing URL" error

查看:93
本文介绍了Linter给出“错误解析URL”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标:
我试图将Like按钮应用到我的博客 - 这是我第一次尝试。

GOAL: I'm trying to apply a Like button to my blog - this is my first time trying it.

行为:
按钮显示,但当有人点击喜欢时,错误一词在相似按钮旁显示为红色。

BEHAVIOR: The button shows up, but when someone clicks "Like", the word "error" shows up in red next to the like button. No interaction with Facebook occurs.

FIX TRIED:
我已经尝试了iframe和html5实现,同样的行为使用两种方法。

FIX TRIED: I've tried both the iframe and the html5 implementation, same behavior using both methods.

FIX TRIED#2:
单词error显示为超链接,表示我使用Facebook Linter,所以我做到了。但是,当我放入我的URL时,Linter发出这个错误:

FIX TRIED #2: The word "error" shows up as a hyperlink suggesting I use the Facebook Linter, so I did. However, when I put in my URL, the Linter gives this error:


解析URL的错误:解析输入URL时出错,没有数据被刮

Error Parsing URL: Error parsing input URL, no data was scraped.

我尝试过我的博客主要网址(douganddaniele.tumblr.com)和个别帖子的网址( http://douganddaniele.tumblr.com/post/14308744801/settling-in )。

I've tried my blogs main URL (douganddaniele.tumblr.com) and the URL of an individual post (http://douganddaniele.tumblr.com/post/14308744801/settling-in).

我在这里使用Linter: https ://developers.facebook.com/tools/debug

I'm using the Linter here: https://developers.facebook.com/tools/debug

PLEA FOR HELP:
显然这里有一些我误会的东西。有人可以帮忙吗?

PLEA FOR HELP: Clearly there is something here that I'm misunderstanding. Can someone help?

推荐答案

如果FB有问题解决任何og标签,你会得到这个。您通常可以通过以下步骤找到问题:

You'll get this if FB has issues parsing any of the og tags. You can usually find the issue by following these steps:

1)首先要检查,确定没有什么明显的东西。通常如果您使用像WordPress这样的东西,简单的事情就会变得复杂。查看来源,确保一切都符合您的想法。

1) First thing to check, go through and make sure there isn't anything obvious. Often if you're using something like WordPress simple things can get complicated. View the source and make sure everything is as you think it should be.

2)访问任何URL。链接到不正确的og:url或og:图像URL可能会导致此错误。

2) Visit any URLs. Linking to incorrect og:url or og:image URLs can cause this error.

3)您的og:图像URL应为https(截至2011年10月1日)。如果不是这样的话,你会收到这个错误(在写作的时候,这种事情可以改变)。

3) Your og:image URL should be https (as of Oct 1st, 2011). You will get this error if it is not (at time of writing, this sort of thing can change).

如果你按照这些步骤,仍然有问题,然后回去到基础删除所有标签并单独添加,每次运行调试器。至少这样你会学到哪个标签引起头痛。

If you follow these steps and still have issues then go back to basics. Remove all tags and add each one individually, running the debugger every time. At least that way you'll learn which tag is causing a headache.

这篇关于Linter给出“错误解析URL”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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