how to use angular 4 meta service to update open graph tags dynamically?

1.3k Views Asked by At

I used Angular 4 meta Service to update meta tags dynamically and updated meta tags for each is showing in inspect window of chrome dev tool but on debugging from open graph tool of facebook and google,they show me the meta tags of home page.

2

There are 2 best solutions below

0
On

Facebook crawlers does not seem to interpret javascript. (Dec 2017)

As you can see in this thread: Does Facebook crawler currently interpret javascript before parsing the DOM?

0
On

This is a duplicate question of Angular 4 - Update Meta tags dynamically for Facebook (Open graph). See reposted answer there!