Question

I have a question..and a problem maybe.. The thing is that I have this site with some youtube videos, all the videos are loaded into the same "html-page".. and I also have this feature to share the videos to facebook. But now I whould like to share the video with a thumbnail aswell.. And I have read about the meta-tag-thingy, but the thing I dont get is.. since I have alot of different videos on the same page.. then if I share one of the videos and then the next second i share another video, then how does it know which thumbnail to share on facebook?

Was it helpful?

Solution

Facebook uses the open graph protocol to determine which thumbnail it should use for a link. The "protocol" is essentially some special markup that facebook can read.

Failing that, it uses its own algorithm to determine which thumbnail is to be used.

In your case, if you have a lot of videos on one page, my understanding is that it will choose the video that has OGP markup. If you have OGP markup for all the videos, then it will most likely choose the first one.

An alternative would be to host each videos on its own separate page. This way, there won't be any confusion was to which thumbnail should be displayed.

You can use the Facebook debugger to see what Facebook "sees" when it scrapes your pages: http://developers.facebook.com/tools/debug

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top