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

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

问题描述

我正在Facebook上分享一个链接到我的网站。该页面在我的浏览器中正确显示,但是当我通过API或前端分享它时,它不会显示。当我将我的URL放入 Graph API调试器时,它给我一个错误解析URL错误:错误解析输入网址,没有数据被刮。



可能是错误的?

解决方案

希望这是



1)您的网站是否是垃圾邮件黑名单?
这是罕见的,但Facebook和大多数其他工具将不会解析您的网站,如果它出现在垃圾邮件发送者黑名单。



我使用 https://admin.uribl.com/ 作为检查器。如果您的网站被列出,您需要查找并清理您网站上的恶意软件,然后按照黑名单所有者的说明删除您的网站。如果问题是您有一个已知垃圾邮件发送者的主机,则需要更改主机。在任何网站再次删除您的网站之前,需要花费几天时间才能完成此任务。



2)您的(X) HTML有效?
Facebook的解析器非常严格。如果您的Web服务器或HTML发送的标题无效,Facebook将不会解析您的站点。要详细测试,请使用W3C中的标记验证器。您必须解决所有错误之前,Facebook将解析您的页面。



我看到的一些最常见的错误是: p>


  • 标题中发送的无效字符串

  • 字符编码发送在文件中的标题和< meta charset> 标签。

  • 无效或不正确<!DOCTYPE>

  • `标签之前的空格

  • 格式错误的HTML标签,特别是< head>

  • 使用> 而不是 /> 在XHTML文档中



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



4)您的服务器是否拒绝与非browsers?
这是很难诊断的,但是一些服务器设置为返回一个 500:服务器错误 403对于任何非浏览器的访问者,禁止



5)Facebook网站是否告诉您您的链接被阻止? >
登录Facebook并尝试在您的时间轴上共享一个链接。如果您的网站出现在Facebook内部的黑名单中,您将收到一条消息,告诉您该网站被阻止。在这个对话框中,有一个表单可以将其标记为假阳性,并请求对您的网站进行审查。



如果您最终在此列表中,Facebook用户阻止您的发布或将其标记为垃圾邮件。这可能源于您的内容。你认为的是SEO可能是 spamdexing 或者你分享的内容对一些用户是冒犯或偏激的,或者你只是一遍又一遍地分享相同的东西。



一旦你修复了错误,请访问 Facebook Debugger 。调试器的手动访问将清除该网址的Facebook缓存。给Facebook几分钟,将更新推送到所有服务器,然后重试。


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

What could be wrong?

解决方案

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

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.

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) 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:

  • 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) 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) 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) 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.

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.

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天全站免登陆