Facebook is the great medium to share our thoughts, pictures, videos with our family members, friends, colleagues etc. Facebook is continuously growing and adding more and more new features to make it more friendly and easier to share our things with others. Photos or Videos uploaded at Facebook can be shared with the specific people or with the public (according to the privacy) but sometimes we need to embed these photos or videos directly at our personal blog/website etc without uploading it on YouTube. Here I am sharing this tip to embed Facebook videos directly on the website using a short embed code (using iframe or object code). Also there is an option to get embed code, just below every facebook video, you can also copy that code directly.
How To Embed Facebook Video Code? (Custom Embed Code)
Copy the below general custom code, only video id has been changed and remaining code would be similar for any videos you want to embed. Following embed code is the general code, you’ve to just replace to xxxxx with the video id, getting from the address bar for every video on facebook, look at the following screenshot to see how to copy the video id-
<iframe src="https://www.facebook.com/video/embed?video_id=473967712665351" height="224" width="400" frameborder="0"></iframe>
<object width="624" height="450" ><param name="allowfullscreen" value="true" /><param name="movie" value="http://www.facebook.com/v/xxxxx" /><embed src="https://www.facebook.com/v/xxxxx" type="application/x-shockwave-flash" allowfullscreen="true" width="624" height="450"></embed></object>