Embedding videos in the News Feed and Improved News Feed story for Comments Box

Some times you want to share video on Facebook from you site. Previous it was not possible, now Facebook introducing some META tag for this.

og:video – e.g., “http://example.com/awesome.swf”

and optionally, you can add additional metadata

og:video:height – e.g. “640”

og:video:width – e.g. “385”

og:video:type – e.g. “application/x-shockwave-flash”

Now When any visitor share a video will show in the feed.

Comments Box is a very good tool for any website. A visitor can use it even if he/she does no have or use Facebook. Hotmail ,AOL and Yahoo! is third party options people may choose for commenting. More over Facebook added new colorscheme for this tool. Now you can have dark background.

For dark background


<div id="fb-root"></div>
<script src="http://www.facebook.com/assets.php/en_US/all.js
  &xfbml=1"></script>
<fb:comments colorscheme="dark" href="[YOUR_URL]" num_posts="5" 
  width="500"></fb:comments> 
 

You can access all comments on your site from here https://graph.facebook.com/comments/?ids={YOUR_URL}

Or if you add the app id in META tag. then you can edit/ modarate the comments on the site. You can also do it on here http://developers.facebook.com/tools/comments/?id=APP_ID

<meta property="fb:app_id" content="{YOUR_APPLICATION_ID}">

For better feed just use og:image, og:title, og:url, og:description, and og:site_name then you will have a feed like this

The META tags looks like this for this page

<meta property="og:site_name" content="site name Like TechCrunch"/>
<meta property="og:title" content="Title of webpage"/>
<meta property="og:image" content="Absolute image url "/>
<meta name="description" content="descriptions of you webpage" />

About Zakir Hyder

This entry was written by .

13. April 2011 by Zakir Hyder
Categories: Facebook, Social Networking Application Development | Comments

Comments

  1. Hi, Neat post. There’s a problem with your site in internet explorer, would check this… IE still is the market leader and a big portion of people will miss your magnificent writing because of this problem.

  2. Zakir Hyder says:

    Thanks Angielski, i checked the site in ie 7. seems working. which version you are using.