Facebook.prototype.post = function(options) {
var data = {
access_token: this.data.token,
// message: options.message,
link: options.link,
};
if (options.type == 'image') data.picture = options.image;
var url = 'https://graph.facebook.com/me/feed';
if (options.friend !== undefined)
url = 'https://graph.facebook.com/' + escape(options.friend) + '/feed';
$.ajax({
type: 'post',
dataType: 'json',
url: url,
data: data,
success: options.success,
error: options.error
});
};

How to view video:
Update: If you want to be able to embed a video based on the link you get from the facebook api, you could do something like:
Just replace the youtube link.
If you want it to autoplay, REMEMBER TO INCLUDE THE
?autoplay=1.How to share video:
Here are two ways to do this:
METHOD 1: Open a Popup with the URL format:
http://www.facebook.com/sharer.php?u=%5BYoutube Link]
Sample code to implement this would be:
The popup that will open will look like:

METHOD 2: Use Javascript API:
This can look more professional because you can display your message as an overlay iframe.
Here’s the documentation I based my code from:
http://developers.facebook.com/docs/reference/javascript/FB.ui
RESULT:
Either way, after the user clicks share, it should appear in the news feed: