网站无效 - 但它是 [英] Site not valid - but it is

查看:201
本文介绍了网站无效 - 但它是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我正在建立一个名为dagbok.nu的网站,它是现在的日记的瑞典语。)



无论如何,创建Facebook应用程序,它声称网站网址以及应用程式网域无效。对于网站网址,我使用,他们的第一个回应是他们将要跟进。现在,一个月后,我收到一封电子邮件,说我们根据对开发人员社区的影响来确定漏洞的优先级,因为这个bug报告没有受到其他开发者的高度关注,我们正在关闭它,以便更好地关注顶部问题,然后他们告诉我去Stackoverflow尝试解决我的问题 - 但问题是WITH THEM,当然没有人报告我的网站不工作,它只影响我,而我没有打开它,由于这个错误!



编辑
我想提交一个新的错误报告,但我可以即使是这样,因为他们阻止了这个URL的错误报告!



我不得不编辑URL - 这里是新的错误报告

解决方案

当Facebook尝试废弃您的网站以获取信息时,他们会使用特定的用户代理( facebookexternalhit ...


Facebook需要抓住您的网页,以了解如何在网站上显示



Facebook每24小时刮擦您的页面,以确保其财产为
最新。当Open Graph
页面的管理员点击Like按钮,以及当URL被输入到
的Facebook URL Linter中时,页面也会被删除。 Facebook观察您的网址上的缓存标头 -
,它将按照优先级顺序查看过期和缓存控制。
但是,即使您指定的时间更长,Facebook也会每24小时刮取
页面。



刮刀的用户代理是: facebookexternalhit / 1.1(+ http://www.facebook.com/externalhit_uatext.php





  1. 确保它不被您的服务器防火墙阻止

  2. 查看您的服务器日志,如果它甚至尝试访问您的网站

  3. 如果您认为这是一个防火墙问题,请查看链接


So, I'm building a website called "dagbok.nu", which is swedish for "diary now" :)

Anyway, when creating the Facebook application, it claims that the site URL is invalid as well as the app domain. For site url, I used "http://dagbok.nu" and for site domain, I used "dagbok.nu". Please don't reply (as I've seen others do on similar issues) that I should type the site url with the scheme and the domain without - that's exactly what I'm doing.

Right, so according to another question here, one could trouble shoot this functionality using FB's own URL scraper, so I did just that:

http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fdagbok.nu

And the reply: Error Parsing URL: Error parsing input URL, no data was scraped Right, so now I can assume that the reason for it being considered invalid is because of FB not being able to scrape the URL. But why?

According to this question, one of the reasons seems to be that FB has deemed the URL insecure or "spammy". I've acquired this domain from a previous owner so this wasn't all that impossible. But when doing the same thing as Matthew in that post - i.e. trying to post in my timeline using the domain "http://dagbok.nu", I didn't get any information. The status box expanded as if to include a thumbnail and information about the link, but it only contained a "(No title)" text and nothing more.

So now I don't know what to do. I've tried to check the DIG and NS records from multiple servers around the web, and everyone seems to resolve it correctly, and I've had friends double check the URL from the states as well. I can't understand what's wrong and I have no idea how to ask someone at FB how to resolve this. Does anyone here have a good advice for this? Thanks in advance! :)

EDIT When changing the domain to another domain that points to the exact same web server and document_root, it works! So this is definitely a problem with the domain "dagbok.nu" and not with the code on that page.

EDIT When using the debug function above - I see no activity in the server log what so ever. Facebook doesn't even contact the server. When using the alternate url - the one from the last edit, it pops up in the logs as it should.

EDIT I filed a bug report with Facebook, And their first response was that they were going to follow up. Now, a month later, I got an email that said "We are prioritizing bugs based on impact to the developer community. As this bug report has not received much attention from other developers, we are closing it so as to better focus on the top issues", and then they told me to go here to stackoverflow to try to solve my issue - but the issue is WITH THEM, and of course no one else have reported that my site doesn't work, it affects only me, and I haven't opened it yet due to this bug!

EDIT I wanted to file a new bug report, but I can't even that now, since they are blocking bug reports with this URL as well!

I had to edit the URL - here is the new bug report

解决方案

When Facebook tries to scrap your site for information, they send a call to your server with specific user agent called "facebookexternalhit"...

Facebook needs to scrape your page to know how to display it around the site.

Facebook scrapes your page every 24 hours to ensure the properties are up to date. The page is also scraped when an admin for the Open Graph page clicks the Like button and when the URL is entered into the Facebook URL Linter. Facebook observes cache headers on your URLs - it will look at "Expires" and "Cache-Control" in order of preference. However, even if you specify a longer time, Facebook will scrape your page every 24 hours.

The user agent of the scraper is: "facebookexternalhit/1.1(+http://www.facebook.com/externalhit_uatext.php)"

  1. Make sure it is not blocked by your server firewall
  2. Look in your server log if it even tried to access your site
  3. If you think this is a firewall issue look at this link

这篇关于网站无效 - 但它是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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