Short answer: to embed a Facebook video, open the video, use its menu to get the official Embed code, and paste that code into your web page's HTML. The video must be public for it to show to your visitors. Here is the full step-by-step, plus how to make it responsive and fix the common "video not showing" problem.
Step 1: Get the embed code from Facebook
- Open the Facebook video on desktop.
- Click the three-dot menu on the post and choose Embed.
- Facebook shows you the embed code. Copy it. You can toggle whether to include the full post.
Step 2: Paste it into your site
Paste the copied code into your page where you want the video, in an HTML block (in WordPress use a Custom HTML block; in Blogger switch the editor to HTML view). The embed includes both a script snippet and a container div; keep both.
Step 3: Make it responsive
Facebook's default embed has a fixed width, which can overflow on mobile. Wrap it so it scales, and set the data-width attribute to a flexible value. A simple approach is to put the embed inside a container with max-width: 100% and let the Facebook SDK handle sizing with data-width="auto".
Why the video must be public
Facebook only embeds videos whose privacy is set to Public. If the original post is restricted to friends or a group, your visitors will see nothing, because they do not have permission to view it. Always confirm the source video is public before embedding.
Troubleshooting: video not showing
| Symptom | Likely cause / fix |
|---|---|
| Blank space where video should be | Video is not public, or the SDK script was stripped |
| Overflows on mobile | Add responsive wrapper / data-width="auto" |
| Works in preview, not live | Your platform stripped the script tag; use a raw HTML block |
The non-obvious tip: consider a thumbnail-plus-link for speed
Every embedded Facebook video loads Facebook's SDK, which adds weight and trackers to your page. If page speed matters and you only have one video, a clickable thumbnail image linking to the video can be far lighter than a live embed. Embed when interaction on-page matters; link when speed does.
Frequently asked questions
How do I embed a Facebook video on my website?
Open the video on desktop, use the three-dot menu to choose Embed, copy the code, and paste it into an HTML block on your page. The video must be public.
Why is my embedded Facebook video not showing?
Usually the video is not set to Public, or your platform stripped the embed's script tag. Confirm the video is public and paste into a raw HTML block.
How do I make an embedded Facebook video responsive?
Wrap it in a container with max-width 100% and use data-width='auto' so the Facebook SDK scales it to fit smaller screens.
Does embedding Facebook videos slow down my site?
Somewhat, because each embed loads Facebook's SDK. For a single video where speed matters, a thumbnail linking to the video is a lighter option.
Comments
Post a Comment
If you have anything in mind, please let me know!