title: Facebook OpenGraph with PHP Variables - How to include unique OG info for each page
body: <p>I hope someone can help me determine the best practice for the structure of my site.</p>
  
  <p>Right now I have a header.php that is an include on all my pages. </p>
  
  <p>This header includes the Facebook OpenGraph since it need to be between the  tags. </p>
  
  <p>The thing is right now all my pages pull the same generic Facebook OG information while I want it to pull the specific info for each page. I am not sure how to do this. If I move the meta information off the header.php then it is not between the  tags. </p>
  
  <p>It seems like using variables for each page would make sense but I am not sure how to have them load properly in the head. </p>
  
  <p>How are people dealing with this issues of creating a template that deals with unique information on each page. </p>
  
  <p>Any ideas on how to solve this issue?</p>
  
  <pre><code>&lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  &lt;link rel="shortcut icon" href="assets/ico/favicon.png"&gt;
  
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;link rel="shortcut icon" href="assets/ico/favicon.png"&gt;
  
      &lt;meta property="og:url" content="http://www.militarypropertyproject.com/"/&gt; 
      &lt;meta property="og:image" content="http://www.militarypropertyproject.com/assets/img/facebook/facebook_og_image_mpp.jpg"/&gt; 
      &lt;meta property="og:description" content="Military Property Project is a top resource in managing your military living."/&gt;
      &lt;meta property="og:image:type" content="image/jpeg" /&gt;
  </code></pre>