title: How to get Open Graph Protocol of a webpage by php?
body: <p>PHP has a simple command to get meta tags of a webpage (get_meta_tags), but this only works for meta tags with name attributes. However, Open Graph Protocol is becoming more and more popular these days. What is the easiest way to get the values of opg from a webpage. For example:</p>
  
  <pre><code>&lt;meta property="og:url" content=""&gt; 
  &lt;meta property="og:title" content=""&gt; 
  &lt;meta property="og:description" content=""&gt; 
  &lt;meta property="og:type" content=""&gt; 
  </code></pre>
  
  <p>The basic way I see is to get the page via cURL and parse it with regex. Any idea?</p>