HOW TO EMBED FACEBOOK VIDEOS IN A WORDPRESS BLOG

These is a first example how to embed Facebook Videos on WordPress Blogs as also on Facebook Landing pages . Here we use a custom moded Plugin that stream the video to Facebook Walls too . Standard Facebook Url format for Videos is https://www.facebook.com/v/xxxxxx  where XXX have to be changed to the Video ID . You find these by visiting the video the long number after v= is the Video ID .

First Example via Object and the Flash variables

you can adapt the viedeo size to your plugin easy by adjusting the widht and high parameters.

 

Now we test to embed a Facebook video in a custom player

We also add the Facebook video  into the header , suprisingly the url format looks quite simliar to youtube for that video  https://www.facebook.com/v/146366035408333

 The Video url contains several keys and parameter to use that url we use the bit.ly short url to prevent that the url brake our player. FB redirect the video 2 times take a look at the javascript console. 

Now we can use Facebook as a Video host the same way as youtube with the differnce no youtube huge watermark just a smal watermark in video. Since Facebook allow us to build personalised Like buttons its simple to add a Like heart or something that fit the content and audiance to get a like for the video inside Facebook . The preview thumbnail is random in that case. As far i know there is no rule that dont allow you to embed Facebook hosted videos in your own player. Here we use a JW -Player from Longtail but for sure Flowplayer would work the same way.

Facebook video get stored on there CDN server  https://fbcdn-video-a.akamaihd.net

 Keys needed to acces video:            oh=XXXXXXX

                                                      __gda__=XXXXX

Every content get requested from facebook runs over a rsrc.php some intersting details from the original author What you should do with static resources 

 

Next Step we share that video back on a facebook wall . That is finally not working at the moment probably some Privacy restriction. We will see if the Keys stay valid over time .

 

 

Will test soon some more with different  upload options like Grupes Fanpages public profiles ect.

 Object embed code 

&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="374" width="650"&gt;<br /><br />&lt;param name="allowfullscreen" value="true" /&gt;<br /><br />&lt;param name="allowscriptaccess" value="always" /&gt;<br /><br />&lt;param name="src" value="https://www.facebook.com/v/XXXXXXXXXXXX" /&gt;&lt;embed allowfullscreen="true" allowscriptaccess="always" height="374" src="https://www.facebook.com/v/XXXXXXXXXXXX" type="application/x-shockwave-flash" width="650"&gt;&lt;/embed&gt;&lt;/object&gt;

 

Some add rev.: 

LEVIs Code Funktion