title: facebook dynamic meta tags with php
body: <p>i have problems with generating dynamic facebook meta tags after a submit form. I have a share button and it should get the parameters i provide in the link, here is the code:</p>
  
  <p>Head:</p>
  
  <pre><code>if(isset($_POST['confirm']))
  {
  $lock=$_POST['lock'];
  $love_letter=$_POST['love'];
  }
  echo'
  &lt;meta property="og:url" content="http://websoftit.ro/lackoflove/registration.php?type=1&amp;love='.$love_letter.'&amp;lock_type='.$lock.'"&gt; 
  &lt;meta property="og:title" content="Lock of Love"&gt;
  &lt;meta property="og:description" content="You have created your own virtual love lock! Why not share with your friends on facebook?
          Your love lock link is: '.$lock.'"&gt;
  &lt;meta property="og:image" content="http://websoftit.ro/lackoflove/images/lovelock/biglock'.$lock.'.png"&gt;
  &lt;meta property="og:image:type" content="image/png"&gt;
  &lt;meta property="og:image:width" content="200"&gt;
  &lt;meta property="og:image:height" content="200"&gt;
  ';
  </code></pre>
  
  <p>Now the code after submit</p>
  
  <pre><code>if(isset($_POST['confirm']))
  {
  $name=$_POST['name'];
  $email=$_POST['email'];
  $country=$_POST['country'];
  $city=$_POST['city'];
  $type=$_POST['type'];
  $lock=$_POST['lock'];
  $love_letter=$_POST['love'];
  $cookie=$_COOKIE['cookie'];
  
  &lt;div class="fb-share-button" data-href="http://websoftit.ro/lackoflove/registration.php?type=1&amp;love='.$love_letter.'&amp;lock_type='.$lock.'" data-type="button_count"&gt;&lt;/div&gt;
  
  }
  </code></pre>
  
  <p>And the problem is that when i press on the share button it doesnt get the parameters for love_letter and lock_type from description and image, it worked few months ago having php variables in link but seems they changed something</p>