Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Facebook crawler currently interpret javascript before parsing the DOM?

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)

like image 382
jeromerg Avatar asked May 17 '26 07:05

jeromerg


2 Answers

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)

like image 199
Malcolm Diggs Avatar answered May 18 '26 21:05

Malcolm Diggs


Yes, that is still the case (and I wouldn’t expect it to change anytime soon).

The Open Graph meta information must be provided by the server, so that it can be read from the HTML code when the URL is fetched.

like image 25
CBroe Avatar answered May 18 '26 22:05

CBroe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!