Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook graph api Facebook og:未找到标记-操作超时(Meteor)_Facebook Graph Api_Meteor_Meta Tags - Fatal编程技术网

Facebook graph api Facebook og:未找到标记-操作超时(Meteor)

Facebook graph api Facebook og:未找到标记-操作超时(Meteor),facebook-graph-api,meteor,meta-tags,Facebook Graph Api,Meteor,Meta Tags,我正在开发一个meteor应用程序,试图在人们共享链接时显示Facebook元数据。我们正在使用Iron Router,最终希望拥有动态元内容,但现在我只是想让静态元内容发挥作用。我读了很多关于spiderable的建议,但我认为对于提供动态内容来说更是如此。也许我弄错了 我一直在使用Facebook调试器,但我不确定如何处理它提供的错误。在Facebook调试器中输入网站URL时,我遇到以下错误: 1) “网站”类型的URL“”处的对象无效,因为未提供“字符串”类型的必需属性“og:title

我正在开发一个meteor应用程序,试图在人们共享链接时显示Facebook元数据。我们正在使用Iron Router,最终希望拥有动态元内容,但现在我只是想让静态元内容发挥作用。我读了很多关于spiderable的建议,但我认为对于提供动态内容来说更是如此。也许我弄错了

我一直在使用Facebook调试器,但我不确定如何处理它提供的错误。在Facebook调试器中输入网站URL时,我遇到以下错误:

1) “网站”类型的URL“”处的对象无效,因为未提供“字符串”类型的必需属性“og:title”

2) Curl错误:操作\u超时操作在10000毫秒后超时,接收到0字节

3) 必须修复的错误对象缺少必需的值-URL“”处类型为“网站”的对象无效,因为未提供类型为“字符串”的必需属性“og:title”

我们确实有一个og:title,所以我认为这不是问题所在

似乎是因为超时,它无法获取任何内容。我有一个标题块,当我从谷歌网站管理员工具中执行“以谷歌身份获取”时,获取网页标题没有问题。下载时间为0.084秒。我最近做了一个新的索引请求,但我不认为这会导致Facebook的scraper出现问题

从my index.html文件:

<head>
  <title>Company Name</title>
  <meta name="description" content="Description here">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>   
  <link rel="shortcut icon" href="image path">

  <!-- Facebook Meta -->
  <meta property="og:title" content="My Page Title"/>
  <meta property="og:type" content="website" />
  <meta property="og:site_name" content="My Website title"/>
  <meta property="og:url" content="https://www.mywebsiteURL.com" />
  <meta property="og:image" content="MyImagePath" />
  <meta property="og:description" content="Website Description" />

  <!-- Twitter Meta -->
  <meta name="twitter:card" content="summary" />
  <meta name="twitter:site" content="@companyname" />
  <meta name="twitter:title" content="My page title" />
  <meta name="twitter:description" content="My page description" />
  <meta name="twitter:image" content="My image path" />
  <meta name="twitter:url" content="https://www.mywebsiteURL.com" />
</head>

公司名称

我被难住了。任何建议都很好

我最终通过下载。我不完全清楚为什么Facebook的scraper不能在HTML标题中获得静态的元内容,而谷歌机器人似乎可以


我使用自制软件安装PhantomJS。如果不返回光标,请不要忘记在发布函数中包含
this.ready()

我正在使用这个软件包,我得到了非常好的结果,我可以在fb中与动态图像共享动态数据。:)谢谢,我会试一试,如果成功了就告诉你。不幸的是,我还没有成功。我使用了这个包,看起来它向DOM提供了头数据,但是FB scraper仍然有相同的错误。当我检查控制台时,似乎出现了websocket错误。我想知道这是否与FB的超时错误有关。错误是:到“…”的WebSocket连接失败:。。。WebSocket握手时出错:意外响应代码:400fb将url数据缓存一段时间如果您想要更新数据,请转到此url并输入您的url,然后单击
debug
,然后单击fetch new scrapt这将获取新数据,这在本地不起作用我想谢谢您的建议,但我每次都会有新的麻烦。同样的错误。