Active Sharing Setup

This section contains basic instructions for setting up active sharing via embedded meta tags.

To set up your application:

  1. Locate the folder for your programming language from the Facebook Code Example (available at zip download) zip file and copy the contents to your project folder.
  2. Open the Ooyala Facebook usage file Facebook Code Example (available at zip download).
  3. Copy the contents to your application.
  4. Make sure to include the imported file.
  5. Insert the return value of the head prefix method as an attribute of the HTML head tag. For example:
 <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# video: http://ogp.me/ns/video#">
  6. Insert the meta tags under the HTML head tag. For a description of these tags, see Sharing Video on Facebook. For example:
    <meta property="og:type" content="video.other" />
    <meta property="og:title" content="Bhangra Empire - Jashan 2011" />
    <meta property="og:description" content="dancing" />
    <meta property="og:url" content="iamaurl">
    <meta property="og:image" content="http://ak.c.ooyala.com/c1d3AxMzo5_lJK08LHYfpzFF02StTtfk/Y2BrwET1VVpfCiI35jMDoxOjBrOwKdHu" />
    <meta property="og:video" content="http://glowing-spring-6591.herokuapp.com/share" />
    <meta property="og:video:secure_url" content="https://glowing-spring-6591.herokuapp.com/share" />
    <meta property="og:video" content="http://player.ooyala.com/player.swf?embedCode=c1d3AxMzo5_lJK08LHYfpzFF02StTtfk&keepEmbedCode=true&docUrl=http%3A%2F%2Fexample.com" />
    <meta property="og:video:secure_url” content=" https://player.ooyala.com/player.swf?embedCode=c1d3AxMzo5_lJK08LHYfpzFF02StTtfk&keepEmbedCode=true " />
    	<meta property="og:video:type " content="application/x-shockwave-flash " />
	 
    	<meta property="og:video:height " content="480 " />
        <meta property="og:video:width " content="640 " />	
          
        
  7. If you want to add a share button, add the following to your page:
 <a name="fb_share"></a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
  8. Run and test your application.

Was this article helpful?