• Home
  • Articles
    • IT
      • Web Multimedia
      • Oracle
    • Social Media
    • Options
    • Miscellaneous
  • About
  • Contact
Articles Social Media Integration Share on Facebook – How to embed your own Videos on someone's Facebook wall when your web pages are “Shared” on Facebook

Share on Facebook – How to embed your own Videos on someone's Facebook wall when your web pages are “Shared” on Facebook

Sunday, 16 May 2010 00:00

Did you know you can embed your own Videos on someone's Facebook wall when someone uses "Share on Facebook" on your website? This article will show you how to do it.

facebook_video_post

*** Facebook will be eventually discontinuing the Facebook "Share" mechanism in favor of using the Facebook "Like" button. While the information in this article is still correct, it may be better for you to use the more up to date methods that I detail in my new article How to embed your own videos on Facebook using the Facebook “Like” and “Share” buttons ***

Facebook Bookmarks or "Share on Facebook"

We have all seen the ubiquitous “Share” buttons on blogs and Corporate websites, such as the below.

Share on Facebook Example Link

They all tend to work the same, when you click Facebook a new browser window opens up and you will see the usual Facebook “Post to Profile” page (such as the one at the top of this article).

In my other article Share on Facebook - Customizing the Text and Images that are posted when your web pages are "Shared" on Facebook I went over how you customize the text and images that Facebook uses for a normal (non-multimedia) web page.

For web pages that contain multimedia such as Videos, Facebook does allow you to embed your Videos on someone's Facebook wall, but only if you specify your own video player. Don't worry, it's not as complicated as it sounds.

Facebook Post with a Video MP3 Player and Custom Track Info

Before I begin

All the changes I describe below will need to be done in the HTML code of the webpage on your website that has the Video, and that you want to embed on someone's Facebook wall when a visitor clicks "Share on Facebook".

First - Specify a Title, Description, and Image

As with normal (non-multimedia) web pages, you should specify a title, description, and image for your multimedia web page. I explained how to do this in my other article Share on Facebook - Customizing the Text and Images that are posted when your web pages are "Shared" on Facebook, so you'll need to do this first if you haven't already. If you're restricted by where you can put these, for example, you use Wordpress, the image_src can go in the html body.

In the example at the bottom of the page, I specified the title, description, and image below.

<meta name="title" content="Share on Facebook – How to embed your own Videos on someone's Facebook wall when your web pages are Shared on Facebook" />

<meta name="description" content="Did you know you can embed your own Videos on someone's Facebook wall when someone uses Share on Facebook on your website? This article will show you how to do it." />

<link rel="image_src" href="/images/stories/articles/social_media/integration/facebook_video_post_onwall.jpg" />

Second - Specify the Location of your Video player and the Video that you want Facebook to use

To specify the location of the Video player component and Video that you want Facebook to use, you will need to add the following html code to your web page (it can live in the html body). For the purposes of this example, I will use the JW Player which I use all over this website, however, you may use theoretically any Video player component you wish.

<link href="/embed/player.swf?config=http://garethhooper.com/embed/flvplayer_facebook_embed_video_config.xml&file=http://garethhooper.s3.amazonaws.com/garethhooper_com/articles/social_media/integration/the_other_guys_trailer.flv" rel="video_src" />

Where embed/player.swf is the relative location of the Video player, ?config=http:/garethhooper.com/embed/flvplayer_facebook_embed_video_config.xml is the absolute location of the configuration for the Video player (so will change depending on the Video player you use), and &file=http://garethhooper.s3.amazonaws.com/garethhooper_com/articles/social_media/integration/the_other_guys_trailer.flv is the absolute location of the Video file. In this case the Video file is on another website (Amazon S3), but you can also specify the full URL of your own website if the Video file is located there.

Lastly - Specify the dimensions of the Video player that you want Facebook to use

You should specify the height and width of the Video player so that Facebook displays it correctly. You will also need to specify a video type. The height, width, and video type can go in the html body.

<meta content="234" name="video_height" />
<meta content="373" name="video_width" />
<meta content="application/x-shockwave-flash" name="video_type" />

Example

Here's a sample Video. The Other Guys movie trailer, and two example facebook share links below it:

If the movie isn’t playing, download a new ADOBE FLASH PLAYER.

The Other Guys

Share on Facebook or

Share_button

You need to get your website WHITE LISTED with Facebook

Before you'll be able to successfully embed your website's videos in Facebook, you will first need to get your website white listed, which is just a simple form you fill in. Click below and fill in the simple form.

Facebook Video Embed Whitelist Request

If like this website, you host your MP4 videos on another website (for better bandwidth, etc), such as Amazon's S3 service website, you still ONLY need to whitelist your own website. You do NOT need to also whitelist the other website that is hosting your MP4 videos (e.g. Amazon S3).

Facebook turned around my whitelist request in less than 8 hours, so you'll need to wait for your whitelist confirmation (which comes via email) before proceeding with your testing.

Caution when testing

  1. See my other article Share on Facebook - Customizing the Text and Images that are posted when your web pages are "Shared" on Facebook on how it appears that Facebook caches.
  2. Note: You won't see the Video player on the Post to Profile page. It's only visible once the link is posted on the visitor's Facebook wall, so I suggest you test by actually posting to your own wall (you can remove the post afterwards).

Related Articles

  • Share on Facebook – How to embed your own MP3s on someone's Facebook wall when your web pages are “Shared” on Facebook
  • Share on Facebook - Customizing the Text and Images that are posted when your web pages are “Shared” on Facebook
  • How to create your own Facebook Custom Page with your own page icon
  • Overview of the New Facebook Social Plugins – Part 1 of 3

Please leave me a comment if you found this article useful or if you have any questions.

Share This
Email This

Comments (19)

Subscribe to this comment's feed
...
0
I wonder how to add our site to white list, help pls
rehep , June 13, 2010
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Thanks Guys for reminding me. I've updated the article. The URL you're looking for to white list embedded videos to http://www.facebook.com/help/c..._whitelist
Gareth , June 14, 2010 | url
  • report abuse
  • +2
  • vote down
  • vote up
...
0
How I change the skin in facebook ?
thanks smilies/smiley.gif
ahmed ouadi , August 09, 2010 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Thanks a lot for this informatic article. It worked for me. You guys are gr8.
Abhijit , January 14, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
ot white listed, put everything in... looks good, shows the blue play button on image, when I click image, sizes up for video, but then stays blank. When I right click on the blank area, it has two choices, the top one says movie not loaded and it greyed out.

Any ideas what I did wrong?
Mark , February 18, 2011
  • report abuse
  • +0
  • vote down
  • vote up
...
0
I would check that the video file is specified correctly.

If you give me the URL I'll take a look.

Gareth
Gareth , February 18, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hi Gareth, I played around with the link a couple different ways.. this is a new website we are working on for our church.

The video is at this page: http://brannockstownbaptistchu...age_id=393

Thanks for any input you can give!

Mark
Mark , February 20, 2011
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hi Mark,

I emailed you what I think is wrong and what I think you need to do to resolve the problem you're having.

I couldn't post it here as the code changes don't display correctly.

Gareth
Gareth , February 20, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
I use the JW player on my website and would like the videos to play on facebook pages. I use simple code using SWFobject with flashvars. Could you give me an example of a complete video_src meta tag for use with flashvars?
Rob , March 26, 2011
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hey Gareth, thanks for the info. I have a quick question about sharing several videos on a page, because each of the videos has their own description, title, url, etc... how would i go about implementing that using your solution... I was thinking about using jQuery to update the metas... but there's an issue with fb caching the pages leaving you with one video per page.
Hong , April 13, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Is there anyway of doing this with posterous hosted videos? Posterous use JW player I understand.

When sharing to facebook they currently just link back to the posterous post.
Al , June 13, 2011
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hi. thanks for the gr8 post. The whitelist link seems to going to the Facebook Help page. I have tried everything but simply cannot find any details or alternative links on how to white list my web site. I have read some articles that says whitelisting ones domain is no longer required. I can successfully embed my flash files into Facebook and it works gr8. I want play some flash files on my clients web sites but am scared facebook kicks them of due to my site not being whitelisted. Any advice on how i can proceed?
Walter , August 22, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Hey Gareth. Do you know if this is still possible? It seems that (once again) Facebook has moved the goalposts and the way you describe here no longer works. References to request whitelisting on their site also appear to have gone missing.
Steve , August 22, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Ah I figured out why it wasn't working. Facebook added secure browsing (HTTPS) not so long ago and if you have this enabled and are trying to view a video over a non-secure domain (like this one) it will default to a link and won't play within your news feed - makes sense.
Steve , August 22, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Go for someone who makes you smile because it takes only a smile to make a dark day seem bright.,http://suprawomens.com
womens supra , October 13, 2011 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
i come here first time. Thank you for sharing your admin would get ready a severely beneficial write-up I congratulate.s I very agree with your views from here.,http://www.belstaffjacketsale.me.uk
Belstaff Jacket Sale , January 13, 2012 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0
Gr8 work buddy...
But its not working if Facebook secure browsing is enabled smilies/shocked.gif
Ashish , January 20, 2012
  • report abuse
  • +0
  • vote down
  • vote up
...
0
thanks thats was helpfull
http://mediarab.com/
Ahmed , February 16, 2012 | url
  • report abuse
  • +0
  • vote down
  • vote up
...
0

I wonder how you got so good. This is really a fascinating blog, lots of stuff that I can get into. One thing I just want to say is that your Blog is so perfect!.
cheap jordans , February 21, 2012 | url
  • report abuse
  • +0
  • vote down
  • vote up

Write comment

feedShow/Hide comment form
bold italicize underline strike url image quote smile wink laugh grin angry sad shocked cool tongue kiss cry
smaller | bigger

busy
< Prev   Next >

Like us on Facebook

Recommended Articles

  • Site Map
  • Legal
  • Privacy Policy
2011 GarethHooper.com