Facebook 不会分享到我网站的链接 [英] Facebook won't share a link to my site

查看:24
本文介绍了Facebook 不会分享到我网站的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Facebook 上分享指向我的网站的链接.该页面在我的浏览器中正确显示,但是当我通过 API 或前端共享它时它没有显示.当我将我的 URL 放入 Graph API 调试器 时,它给了我一个错误错误解析 URL:解析输入 URL 时出错,未抓取任何数据."

I am trying to share a link to my site on on Facebook. The page displays correctly in my browser, but when I share it via the API or front end it does not show up. When I put my URL into the Graph API debugger it gives me an error "Error Parsing URL: Error parsing input URL, no data was scraped."

可能有什么问题?

推荐答案

希望这是一份详尽的清单,列出了您的网站何时不会被抓取:

Hopefully, this is an exhaustive list of things to check when your site won't scrape:

1) 您的网站是否在垃圾邮件黑名单中?这种情况很少见,但如果您的网站出现在垃圾邮件发送者黑名单中,Facebook 和大多数其他工具根本不会解析您的网站.

1) Is your site on a spam blacklist? This is rare, but Facebook and most other tools won't parse your site at all if it shows up on a spammer blacklist.

我使用 https://admin.uribl.com/ 作为检查器.如果您的网站被列出,您需要找到并清除您网站上的恶意软件,然后按照黑名单所有者的说明删除您的网站.如果问题是您的主机是已知的垃圾邮件发送者,则您需要更换主机.在任何网站再次抓取您的网站之前,这需要几天时间才能在系统中发挥作用.

I use https://admin.uribl.com/ as a checker. If your site is listed, you need to find and clean the malware on your site, then follow the instructions from the blacklist owner(s) to remove your site. If the problem is that you've got a host who is a known spammer, you'll need to change hosts. It's going to take a few days for this to work its way through the system before any site will scrape your site again.

2) 您的 (X)HTML 是否有效?Facebook 的解析器非常严格.如果您的网络服务器或 HTML 发送的标头无效,Facebook 将不会解析您的网站.要对此进行详细测试,请使用来自 W3C 的 Markup Validator.您必须先解决所有错误,然后 Facebook 才会解析您的页面.

2) Is your (X)HTML valid? Facebook's parser is very strict. If the headers sent by your web server or your HTML isn't valid, Facebook will not parse your site. To test this in detail, use the Markup Validator from the W3C. You have to resolve all of the errors before Facebook will parse your page.

我见过的一些最常见的错误是:

Some of the most common errors I have seen are:

  • 在标头中发送的字符串无效
  • 标题中发送的 character-encoding 与文档中的 标签不匹配.
  • 无效或不正确的
  • ` 标签前的空格
  • 格式错误的 HTML 标签,尤其是在
  • 在 XHTML 文档中用 > 而不是 /> 关闭的标签
  • Invalid string sent in the headers
  • Mismatch between the character-encoding sent in the header and the <meta charset> tag in the document.
  • Invalid or incorrect <!DOCTYPE>
  • Whitespace before the ` tag
  • Malformed HTML tags, especially in the <head>
  • Tags closed with > instead of /> in XHTML documents

3) 您是否使用 JavaScript 重定向访问者?Facebook 解析器不执行 JavaScript.如果要将访问者重定向到自定义内容,则需要使用服务器端脚本执行此操作.

3) Are you redirecting your visitors with JavaScript? The Facebook parser does not execute JavaScript. If you want to redirect a visitor to custom content, you need to do this with a server-side script.

4) 您的服务器是否拒绝连接到非浏览器?这很难诊断,但有些服务器设置为为任何非浏览器访问者返回 500:Server Error403:Forbidden.

4) Is your server refusing connections to non-browsers? This is harder to diagnose, but some servers are set to return a 500:Server Error or 403:Forbidden for any non-browser visitor.

5) Facebook 网站是否告诉您您的链接已被阻止?登录 Facebook 并尝试在您的时间线上分享链接.如果您的网站出现在 Facebook 内部黑名单中,您将收到一条消息,告诉您该网站已被阻止.在此对话框中有一个表单,您可以在其中将其标记为误报并请求对您的网站进行审核.

5) Does the Facebook site tell you your link is blocked? Log into Facebook and attempt to share a link on your timeline. If your site appears in the Facebook internal blacklist, you will get a message telling you the site is blocked. On this dialog, there is a form where you can mark this as a false positive and request a review of your site.

如果您最终出现在此列表中,则 Facebook 用户正在阻止您的帖子或将其标记为垃圾邮件.这可能源于您的内容.您认为的 SEO 可能是spamdexing 或者您分享的内容对某些用户来说是冒犯性的或两极分化的,或者你只是一遍又一遍地分享相同的东西.

If you end up on this list, Facebook users are blocking your postings or marking them as spam. That probably originates in your content. What you think is SEO is probably spamdexing or the content you are sharing is offensive or polarizing to some users, or you're just sharing the same stuff over and over again.

修复错误后,再次访问 Facebook 调试器.手动访问调试器会清除 Facebook 对该 URL 的缓存.给 Facebook 几分钟时间将更新推送到所有服务器,然后重试.

Once you have fixed the error, visit the Facebook Debugger again. A manual visit to the debugger clears Facebook's cache for that URL. Give things a few minutes for Facebook to push the updates to all servers, and then try again.

这篇关于Facebook 不会分享到我网站的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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