本文介绍了Facebook Crawler没有选择我的meta标签/ Open Graph Object Debugger的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook抓取工具无法读取我的元标记



,但它已成功读取



这两个都是使用扩展相同的模板base.html并将metatags.html注入到它们中。您可以通过检查元素来引用HTML代码。

即使未启用JavaScript,也会显示元数据,在禁用JavaScript时仅显示以下

 < HEAD> 
< script src =// cdn.optimizely.com/js/687271175.js\"> ;</script>
< script src =http://code.jquery.com/jquery-1.11.0.min.js>< / script>
< meta charset =UTF-8>
< / head>

当您在不需要JavaScript的情况下提供元数据时,Facebook的服务可能会解析它。

Facebook crawler not able to read my metatags on

http://nitansh.fwd.wf/article/travel/best-all-inclusive-resorts-for-romance/3189783/

but it successfully read the tags for the

http://nitansh.fwd.wf/nurture/

Both are on made using extending same template base.html and by injecting metatags.html into them. you can refer the HTML code by inspecting element.

解决方案

While http://nitansh.fwd.wf/nurture/ shows the metadata even without having JavaScript enabled, http://nitansh.fwd.wf/article/travel/best-all-inclusive-resorts-for-romance/3189783/ shows only the following head when JavaScript is disabled:

<head>
    <script src="//cdn.optimizely.com/js/687271175.js"></script>
    <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    <meta charset="UTF-8">
</head>

When you make the metadata available without requiring JavaScript, Facebook’s service will probably be able to parse it.

这篇关于Facebook Crawler没有选择我的meta标签/ Open Graph Object Debugger的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 04:45