Facebook仅从确定的服务器返回206响应 [英] Facebook returning a 206 response only from a determined server

查看:234
本文介绍了Facebook仅从确定的服务器返回206响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Facebook javascript API(FB.ui)发布Feed。当我发布Feed时,图像字段显示为空。

I'm trying to post a feed using Facebook javascript API (FB.ui). When I post the feed, the image field appears empty.

当然,我尝试过从由Facebook提供的示例 http://www.fbrell.com/ f8.jpg ,它工作正常。然后我下载了这个图像并上传到我的服务器,再试一次,什么都没有。

Of course I've tried the URL from the example provided by facebook http://www.fbrell.com/f8.jpg and it works fine. Then I downloaded this image and uploaded to my server and tried again and got nothing.

使用Facebook调试器,Facebook示例图像返回200条消息,同一图像从我的服务器返回206消息,我相信是不是在feed对话框中显示。

Using the facebook debugger, the facebook example image returns a 200 message, and the same image from my server returns a 206 message, which I believe is the reason why it's not showing in the feed dialog.

这是调试器的Graph API输出:

This is the Graph API output from debugger:

{
   "id": "530885910309390",
   "url": "http://www.zx-works.com/img/f8.jpg",
   "type": "website",
   "title": "http://www.zx-works.com/img/f8.jpg",
   "updated_time": "2013-06-01T18:48:22+0000",
   "created_time": "2013-06-01T18:23:58+0000",
   "is_scraped": true
}

问题是:什么可能从一个服务器更改为另一个到Facebook不能正确获取图像?我可以从我的服务器端修复它吗?它运行Apache 2.2.24。有人遇到这个问题吗?

Question is: what can possibly change from one server to another to facebook not get the image correctly? Is something I can do to fix it from my server side? It's running Apache 2.2.24. Someone runned into this problem before?

推荐答案

Facebook使用ipv6来废弃您的网站。你的DNS设置为ipv6吗?您的服务器控制面板(如directadmin)是否允许ipv6访问?
否则,请与您的托管公司联系以回答这些问题,您将会很好!

Facebook uses ipv6 to scrap your website. Is your DNS set to ipv6? Did your server controlpanel (like directadmin) allow ipv6 access? Otherwise, contact your hosting company to answer these questions and you'll be fine!

这篇关于Facebook仅从确定的服务器返回206响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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