Facebook抓取工具目前在解析DOM之前解释javascript? [英] Does Facebook crawler currently interpret javascript before parsing the DOM?

查看:116
本文介绍了Facebook抓取工具目前在解析DOM之前解释javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下链接似乎表明它不能: Facebook Sharer如何选择图像和其他元数据共享我的URL?



但是我想知道现在是否仍然是这样...

解决方案

在我运行的测试中我已经从来没有看过它解释JS,但这可能是上下文/域特定的(谁知道)。



要测试您的具体情况,请使用Facebook linter: https://developers.facebook.com/tools/debug



(首先登录到FB)



这是确定100%确定FB将解析您的页面的唯一方法(将推断什么属性) p>

Following link seems to tell that it can't: How does Facebook Sharer select Images and other metadata when sharing my URL?

But I wanted to know if it is still the case at current date... (The documentation on facebook dev site doesn't give any precision about this point)

解决方案

In the tests I've run I've never seen it interpret the JS, but that might be contextual / domain-specific (who knows).

To test your specific case, use the Facebook linter: https://developers.facebook.com/tools/debug

(log into FB first)

That's the only way to be sure 100% sure how FB will parse your page (what properties it will infer)

这篇关于Facebook抓取工具目前在解析DOM之前解释javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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