title: How to get facebook video thumbnail from a given video ID using php
body: <p>I want to get thumbnail of facebook videos from a given video ID .</p>
  
  <p>I use the preg_match function to get facebook video ID from a given url retrieved from database</p>
  
  <pre><code>preg_match("~/videos/(?:t\.\d+/)?(\d+)~i", $value-&gt;url, $matches);
  $video_id = $matches[1];
  echo ' &lt;div class="fb-video" data-href="https://www.facebook.com/facebook/videos/'.$video_id.'/"&gt;&lt;/div&gt;';
  </code></pre>
  
  <p>I want to posted on website with something like this:</p>
  
  <pre><code>&lt;img src="VIDEO_IMAGE.&lt;?php echo $video_id ?&gt;.jpg"&gt;
  </code></pre>
  
  <p>I don't know if it' posssible? !</p>