By Yue Cai, Software Engineer
People share and engage with videos, articles, posts and photos on Facebook every day. We’re always looking for ways to make it easier for publishers to use material from Facebook to make their websites more social and engaging for their audience. Today, we’re introducing two new tools for embedding public videos and posts from Facebook: a new embedded video player API and support for the oEmbed standard.
Customization and Control: Embedded Video Player API
Earlier this year, we introduced an interactive embedded video player that brings Facebook videos to your site. Video is one of the most popular and engaging types of media for people, so we are announcing an API for the Facebook Embedded Video Player. This API helps you embed videos on your site more easily and gives you more control, allowing you to customize the player to present videos in the way you want for your audience.
The new API includes the following features:
- Autoplay (With or Without Sound)
- Volume Control
- Player Controls
- Event & Error Handling
- Custom Buttons & Thumbnails
As always, you can still show synchronized view counts to see how many people watched your video.
Videos created using the API
The video platform company uStudio leveraged the new API to create the video below with customized overlays.
The Selena Gomez video player from Interscope Records is a fully customized version using the Facebook chromeless player. It features links to concert tickets, social sharing to Facebook Pages and Instagram, as well as a way for fans to subscribe to the Selena Gomez email list.
The CES video player has simple overlays so people can register for the event or visit the hotel website where they can book a room.
Embedding More Easily with oEmbed
oEmbed is an open standard that manages all the technical details required to embed things from Facebook, making it even easier to embed public articles, videos, and other posts from Facebook on your site by simply copying and pasting a URL.
Starting today, you can build oEmbed support for your CMS. For implementation details, please read our oEmbed documentation. Once your CMS supports oEmbed for Facebook, you can embed Facebook posts and videos quickly, with no need for screenshots or code changes.
These two new tools will improve your experience when bringing material from Facebook onto your site. Check out the embedded video player API documentation and oEmbed documentation to get started today.