Share image dynamically on social networks Angular 11

Asked

Viewed 29 times

0

I am using the plugin/framework Addthis to share on social networks, and I want to change the image dynamically based on different content, I came to make the implementation of updateTag, but when I click to share it doesn’t take the tag that changed, it just takes the one that was already when the site is loaded.

Below is how the updateTag:

ngOnInit(){
  this.meta.updateTag({ property: 'og:image', content: 'teste.jpg' });
}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.