Hi! Everyone, hope you all are fine.
Today in this post I will tell you how you can embed Facebook videos using iframe. Facebook don’t provide any direct codes to embed videos, as YouTube and many other such services provides. So I have told you how you can embed Facebook videos using object tag but you may find it difficult to remember, so here is another code which uses iframe tag and it is very easy to remember also.
Here how you can
- Get the Facebook video ID
- Now copy that video ID and replace it with VIDEO-ID in below code
- After you replace it, it will look something like this
- Now place the edited code to your blog or website wherever you want to embed
i) Go to that video page which you want to embed (for example we will use this video URL http://www.facebook.com/video/video.php?v=1246153453292)
ii) Every Facebook video have a unique ID which you will get in video URL
For our example video URL, video ID is 1246153453292
<iframe width=”516″ height=”346″ src=”http://www.facebook.com/v/VIDEO_ID” frameborder=”0″></iframe>
<iframe width=”516″ height=”346″ src=”http://www.facebook.com/v/1246153453292” frameborder=”0″></iframe>
Note: – You may or may need to change the width and height also depending on size of video, which you need to find out by yourself because some of the videos on Facebook have different width and height.
Here is a demo video, embedded using iframe tag
If you have any question or problem let me know.