Sunday, 17 May 2015

Add Facebook Videos to your Website

Add Facebook Videos to your Website

Embed Facebook Video
First, let’s find a video on Facebook using Graph Search. Go to the search box and type a search query like videos of cats liked by my friends or videos uploaded by me or videos uploaded by my friends of friends.
Next click the video thumbnail to open the video play in a lightbox window. Hover your mouse over Options and choose Embed Video from the drop-down. Facebook will provide a snippet of code that you can directly copy and paste in your website template or your blog post.
The embedded videos are responsive and occupy the full width of the parent div. If you would like to constraint the video width or need to wrap text around the video, you’ll need to modify the .fb-video class as show in the snippet below:
<style>
  .fb-video { 
    /* Do not occupy the full width*/
    max-width: 300px !important; 
    /* Align the video to the right of a page and wrap the text */
    float: right;
        /* Add a Grey border to the video */
    border: 2px solid grey;
  }
</style>

0 comments :

Post a Comment

 

Copyright @ 2013 Tech Source .