Automatically embed video in Facebook wall

When you share a YouTube link to FB, it automatically inserts a YT player into your wall.

At first I thought it was an FB effort, but then I noticed that this happens with many video websites (which I probably never heard of FB) even from small countries.

So my question is: what guidelines should I follow for my video site so that the FB detects my player and automatically inserts it into one wall after exchanging a link to this video?

Keep in mind that I'm not talking about using the API. Iโ€™m saying that the user uses a link to the page containing this video.

+4
source share
1 answer

See the Connect Audio and Video Data section in the OpenGraph Protocol section, for example:

<html xmlns:og="http://ogp.me/ns#"> <head> ... [REQUIRED TAGS] <meta property="og:video" content="http://example.com/awesome.flv" /> <meta property="og:video:height" content="640" /> <meta property="og:video:width" content="385" /> <meta property="og:video:type" content="application/x-shockwave-flash" /> ... </head> 
+5
source

Source: https://habr.com/ru/post/1343612/


All Articles