og:image get content from a var
<p>i have an issue with open graph, i need to pass to the meta tag </p>

<pre><code>&lt;meta property="og:image" content="" /&gt;
</code></pre>

<p>one url that i have in my html</p>

<pre><code>&lt;div class="views-field-field-thumbnail-fid"&gt;
&lt;span class="field-content"&gt;http://www.sitename.com/sites/default/files/filename.jpg&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>i tried this but don't work</p>

<pre><code>$(document).ready(function(){
var v = $(".views-field-field-thumbnail-fid .field-content").text();
$('meta[property="og:image"]').attr("content", v);
});
</code></pre>
