Adding a Facebook Like Button to a Video Cloud Player

Product
Video Cloud
Applies to Roles
Publisher, Developer
Version
Brightcove 5
Edition
All

It's easy to add a Facebook Like button to your Video Cloud player so that viewers can Like your videos and post a link to them on their Facebook wall in one click.

Facebook offers the capability to add a Like button beside or below your Video Cloud players. Clicking the Facebook Like button adds one individual to the total count of those who have liked the player, and posts a link to the web page hosting the player on the liker's Facebook status. The Like button comes with options to report the total number of likes, as well as to show the names and profile photos of friends in a Facebook user's network who have liked a video.

To create a Facebook Like button:

  1. Go to the Facebook Developers site: http://developers.facebook.com/docs/reference/plugins/like/.
  2. Enter your Like button preferences in the configuration form according to the instructions on the page. In the URL to Like box, enter the URL of the page hosting your Video Cloud player.
  3. Click Get Code.
  4. Select HTML5 or IFRAME to generate the appropriate code.

  1. Copy the Like button code you generated.
  2. Open the web page hosting the Video Cloud player and paste your code beneath your player publishing code. Add a <br/> tag to display the Like button beneath the player.

Here's a sample Like button linked from the image below. You can view the file’s source to see the pasted iframe code generated from the Facebook Developers site beneath the Video Cloud publishing code.

The image above shows the profile photos of any friends of the viewer who have liked the video. The collection of images here will differ for each Facebook user. To implement this option, check Show faces when generating the iframe code.

This solution works on the web page level, not the video level, and supports only one Like button per page. Facebook users Like the player; if a player contains multiple playlists, the Like does not specify an individual video. To post a status for an individual video, your users can click the share control from a Video Cloud player, or the Facebook button from the viral sharing menu in the Video Cloud player.