title: Symfony2 / Sonata SEO Bundle / og:image
body: <p>Can't for the life of me seem to work this one out. I have added the following to my 'base' twig's head:</p>
  
  <pre><code>  &lt;html {{ sonata_seo_html_attributes() }}&gt;
  &lt;head {{ sonata_seo_head_attributes() }}&gt;
      {{ sonata_seo_title() }}
      {{ sonata_seo_metadatas() }}
      {{ sonata_seo_link_canonical() }}
      {{ sonata_seo_lang_alternates() }}
  </code></pre>
  
  <p>Which works great, but running <a href="https://developers.facebook.com/tools/debug/" rel="nofollow">Facebook debug</a>, It is telling me I need to explicitly define og:image.</p>
  
  <blockquote>
    <p>og:image is missing. The og:image meta tag is necessary for Facebook to render a News Feed story that generates a high click-through rate.</p>
  </blockquote>
  
  <p>Now I've looked through the code and on Google but can't seem to find any mention of it, but I can't believe this is just an issue I am experiencing.</p>
  
  <p>I'm trying to use it from within SonataNewsBundle / Media Bundle, and my images are loaded onto the page using:</p>
  
  <pre><code>   &lt;img data-interchange="[{% path post.image, 'small' %}, (small)], [{% path post.image, 'big' %},(large)]"&gt;
  </code></pre>
  
  <p>I have tried adding a Meta block to News/View and putting this:</p>
  
  <pre><code>   {% block meta %}
     &lt;meta property="og:image" content="{% media post.image, 'big' %}" /&gt;
     {% endblock meta %}
  </code></pre>
  
  <p>But get this when debugging:</p>
  
  <pre><code>Object at URL 'http://www."mysite".com/news/2014/6/17/woop-just-testing' 
  of type 'article' is invalid because the given value 
  '&lt;img alt=' for property 'og:image:url' 
  could not be parsed as type 'url'.
  </code></pre>
  
  <p>So then I tried:</p>
  
  <pre><code> {% block meta %}
   &lt;meta property="og:image" content="{% path post.image, 'big' %}" /&gt;
   {% endblock meta %}
  </code></pre>
  
  <p>But get this instead:</p>
  
  <pre><code>Object at URL 'http://www."mysite".com/news/2014/6/17/woop-just-testing' of type 
  'article' is invalid because the given value 
  '/uploads/media/news/0001/01/thumb_3_news_big.jpeg' for property 
  'og:image:url' could not be parsed as type 'url'.
  </code></pre>
  
  <p>Any help greatly appreciated.
  Doug.</p>