When I copy a YouTube link, like this one, for example (http://www.youtube.com/watch?v=_Ka2kpzTAL8), and paste it into a Facebook status update, Facebook somehow grabs a still of the video. I’d like to build a feature that does the same thing, but I don’t really know how to find the image.
Can anyone point me in the right direction? I’m open to PHP, Python, Ruby or Perl.
Alright, found it !
Take this link:
http://i4.ytimg.com/vi/something/hqdefault.jpgand replace something with the video’s ID on Youtube. For a smaller image, just remove thehqpart of the URL.