Execute Javascript when Facebook crawls website

折月煮酒 提交于 2019-12-02 07:32:26

How can i execute this when Facebook crawling the page ?

Not at all, of course.

Facebook’s scraper just looks at the HTML code of your page; it’s not a full-fledged “browser” that would execute any client site code.

You’ll have to put your OG meta data into the HTML code that get’s delivered when the URL is requested. That’s how it works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!