How to do Facebook Open Graph friendly meta tags with client-side template engines like AngularJS, Mustache, Handlebars

前端 未结 3 1461
自闭症患者
自闭症患者 2020-12-10 07:20

According to my testing, Facebook\'s crawlers do not render client-side templates like a browser.

I want to avoid a webserver and building HTML files for Open Graph

3条回答
  •  离开以前
    2020-12-10 07:41

    Use the ?_escaped_fragment_ method along with a prerender service. Facebook will respect the same crawlable Ajax specification as Google. Please see https://developers.google.com/webmasters/ajax-crawling/docs/specification

提交回复
热议问题