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

前端 未结 3 1474
自闭症患者
自闭症患者 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:49

    The solution is basically to use some kind of server-side user-agent detection to pick up whenever a social media crawler arrives.

提交回复
热议问题