0

I ave embedded youtube video on my CodeIgniter page, i'm using official youtube embedding code:

<iframe width="560" height="315" src="http://www.youtube.com/embed/msHFJhMqaKI" frameborder="0" allowfullscreen=""></iframe>

But when I try to share my page into facebook, i have no thumbnail, is there a tag or something what can help me with sign my video as future facebook thumbnail?

Rytmis
  • 31,467
  • 8
  • 60
  • 69
pawel
  • 5,976
  • 15
  • 46
  • 68
  • possible duplicate of [How to show particular image as thumbnail while implementing share on Facebook?](http://stackoverflow.com/questions/689295/how-to-show-particular-image-as-thumbnail-while-implementing-share-on-facebook). It doesn't matter exactly what you are sharing or how - the way to handle Facebook's previews of your site are in that post... – Lix Sep 12 '12 at 10:27
  • I can only specify image, not video? (btw. saw this post before) – pawel Sep 12 '12 at 11:08
  • If you want to have the video actually **play** within facebook you'll have to develop your own FLV player - that is a different story. If all you want is a thumbnail image, then the `og:image` meta tag is all you need. – Lix Sep 12 '12 at 11:34

1 Answers1

2

yap you should add the meta tags in your head portion

<meta property="og:image" content="http://siim.lepisk.com/wp-content/uploads/2011/01/siim-blog-fb.png" />

after adding meta tag you can check what facebook scrap from your page

facebook linter

here is some other meta tags that will be helpfull

<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>

For more information
visit this link ..

chhameed
  • 4,406
  • 4
  • 26
  • 44