title: Show title and description of youtube video link like facebook
body: <p>YouTube: get youtube title+ image+description like facebook</p>
  
  <p>Right now i'm using</p>
  
  <pre><code>&lt;?php
  
  // Replace Youtube URLs with embed code
  function embedYoutube($text)
  {
  $search = '%          # Match any youtube URL in the wild.
      (?:https?://)?    # Optional scheme. Either http or https
      (?:www\.)?        # Optional www subdomain
      (?:               # Group host alternatives
        youtu\.be/      # Either youtu.be,
      | youtube\.com    # or youtube.com
        (?:             # Group path alternatives
          /embed/       # Either /embed/
        | /v/           # or /v/
        | /watch\?v=    # or /watch\?v=
        )               # End path alternatives.
      )                 # End host alternatives.
      ([\w\-]{10,12})   # Allow 10-12 for 11 char youtube id.
      \b                # Anchor end to word boundary.
      %x';
  
  $replace = '&lt;object width="425" height="344"&gt;
      &lt;param name="movie" value="http://www.youtube.com/v/$1?fs=1"&lt;/param&gt;
      &lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
      &lt;param name="allowScriptAccess" value="always"&gt;&lt;/param&gt;
      &lt;embed src="http://www.youtube.com/v/$1?fs=1"
          type="application/x-shockwave-flash" allowscriptaccess="always" allowFullScreen="true" width="425" height="344"&gt;
      &lt;/embed&gt;
      &lt;/object&gt;';
  
  return preg_replace($search, $replace, $text);
  }
  
  $string = 'Video1'.
  'http://www.youtube.com/watch?v=NLqAF9hrVbY'."\n".
  'http://www.youtube.com/v/u1zgFlCw8Aw';
  
  echo embedYoutube($string);
  
  ?&gt;
  </code></pre>
  
  <p>for embedding youtube videos but i want full description + title + link of the source for the video to be displayed along with it.
  Does anyone have any answer.</p>