I have a webpage that is dynamically built and Iβm trying to get links that are available on Google+ to show fragments and look beautiful. An example of a snippet for rendering articles and documentation can be found here:
https://developers.google.com/+/web/snippet/article-rendering
When I follow the documentation, my links do not display everything that I installed in google plus, they are displayed as follows:

The head of my page looks like this:
<head> <div id="replaceGoogle"></div> </head>
In my javascript, I have this to insert open graph tags after generation:
//replace google var google = '<meta property="og:type" content="article" /><meta itemprop="og:headline" content="'+ data[0].name+'" /> <meta itemprop="og:description" content="View beer on Beer Portfolio" /> <meta property="og:image" content="'+ data[0].icon +'" />'; $("#replaceGoogle").replaceWith(google);
Data is taken from json read from ajax call. Can't I do it dynamically?
source share