Facebook Sharing with angular JS variable replacement

350 views Asked by At

I am trying to share my web page and I am using angular js variables in order to pass the meta tag values. For image, I am using it like this:

<meta property="og:image" content="{{imageUrlStr}}">

And for title:

<meta property="og:title" content="{{title}}">

But when I try to share it, facebook share popup displays this like {{title}} and the image is not visible.

When I inspect the statement over Chrome, I can see that all the variables are injected.

Any ideas?

Thx

0

There are 0 answers