How to embed facebook video and autoplay?

I tried to embed a facebook video and was struggling to change parameter for making the video autplay.
Tried many things and stackoverflow and other links was not solving it.
Then the hacker in me rose :P, here is the solution how you can embed a facebook video and change different parameters.
Dependency: You must install firfox and firebug to easy copy paste html and hack it 🙂

1. first find the vide link from the normal facebook embed code
for example an embed code is like this:

2. grab the src link and open in firefox
now start the firebug and try looking into the html section
inside some div you will see embed code like this
embed width=”100%” height=”100%”
\<flashvars=”” wmode=”opaque” scale=”noscale” salign=”tl” allowscriptaccess=”always” allowfullscreen=”true” quality=”high” bgcolor=”#000000″ name=”swf_id_51aa0c74355126771516699″ id=”swf_id_51aa0c74355126771516699″ style=”display: block;width:365px;height:205px;” src=”; type=”application/x-shockwave-flash”\>

there you will see autoplay%22%3Afalse
change that to true and the video will autoplay
3. you can also change the height and width of video to any size by just changing style property you can even use any css class on it 🙂

so guys its not rocket science not sure why I could not find this in google. posting here if it helps somebody and saves some time 🙂


Work is fun!

Tagged with: , , , , , , , , , ,
Posted in Uncategorized
4 comments on “How to embed facebook video and autoplay?
  1. […] arises more difficulty with embedding facebook video and autoplaying them. Here I have got a solution for it. What I was expecting it is more than […]

  2. tareqalam says:

    actually it dosent work correctly as facebook changes its source of video file, so i am sorry guys its just facebook business starategy that they wont allow smooth embed of video in order to stop people from going away from facebook … but think its time to become a bit more open about it like youtube.
    thanks and sorry if I have disappointed someone 😦

  3. I only scrolled down to say thanks a million, as iv been banging my head on my desk the past few days trying to figure out how to do this. and now I feel like shooting myself, is there no other way?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

All content provided on this "" blog is for informational purposes only. The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner of [] will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.
June 2013
« May   Jul »

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 23 other followers

%d bloggers like this: