Developer Utilities · Free tool
Facebook Embed Generator
Create iframe embed codes for posts, videos, or pages instantly. No SDK required—free online tool in your browser.
<iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fposts%2FPOST_ID&show_text=true&width=500" width="500" height="650" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>Uses Facebook’s official Social Plugins iframe. Posts and pages must be public. Private posts won’t render.
Advertisement
What it does
Generate Facebook embed code for posts, videos, or pages. The tool produces an iframe using Facebook’s official Social Plugins endpoint — paste any public Facebook URL, pick the type (post / video / page), customize width and caption visibility, copy the iframe, paste into your blog / news article / website. The iframe renders the post inline with the same look and feel as the Facebook feed.
Why use the official embed instead of a screenshot: engagement attribution — likes, shares, and comments on the embedded post count toward the original poster’s engagement metrics, making them more likely to see your reference; always-current — if the original post is edited, the embed updates; legal compliance — Facebook’s terms of service permit embedding via their official plugins; downloading or hot-linking images is more ambiguous; interactive — viewers can like, share, or visit the original post directly from the embed.
Three embed modes available: Post (text/image post — most common embed use case); Video (Facebook-native or live videos — uses Facebook’s player); Page (a Facebook Page’s feed plugin — shows recent posts, useful for sidebar widgets). Width is customizable (340-750px, Facebook’s supported range); height auto-fits. The iframe doesn’t require the Facebook SDK or an App ID — Facebook renders the embed server-side at the plugin endpoint.
Embed this tool on your siteShow snippetHide
Paste this snippet into any page. Loads on-demand (lazy), no tracking scripts, and sized to most dashboards. Replace the height to fit your layout.
<iframe src="https://freetoolarena.com/embed/facebook-embed-generator" width="100%" height="720" frameborder="0" loading="lazy" title="Facebook Embed Generator" style="border:1px solid #e2e8f0;border-radius:12px;max-width:720px;"></iframe>How to use it
- Paste the Facebook URL: a post URL (facebook.com/USER/posts/ID), a video URL (facebook.com/watch?v=ID), or a page URL (facebook.com/PAGENAME).
- Pick the embed mode that matches your URL type.
- Set width (340-750px, default 500). Wider for full-width content; narrower for sidebars.
- Toggle caption visibility (off-by-default for video to keep the player clean; on for post to show the original text).
- Copy the iframe. Paste anywhere accepting raw HTML — Wordpress HTML block, Substack HTML, Notion embed, your own static site, etc.
When to use this tool
- Quoting a Facebook post in a news article or blog.
- Embedding a Facebook live or recorded video for a tutorial / event recap.
- Showing recent posts from a Facebook Page in a sidebar (the Page plugin).
- Press / PR pages featuring viral Facebook moments related to your topic.
When not to use it
- Private posts — Facebook only embeds public posts. If the post is restricted to friends or a specific audience, the embed will fail to render.
- Pages where you can't add iframes (very restricted CMS environments) — those need static-image alternatives.
- AMP pages — Facebook's standard iframe isn't AMP-compatible. Use amp-facebook or link to the post.
- Performance-critical pages — Facebook embeds load Facebook's full plugin SDK + analytics, adding 200-500KB and several network requests per page. For lightweight previews, link to the post and use a static screenshot.
Common use cases
- Onboarding a colleague who needs the same calculation/conversion
- Verifying a number or output before passing it on
- Quick generation during a typical workday
- Pre-decision sanity-check on inputs and outputs
Frequently asked questions
- Do I need a Facebook App ID?
- No — the Social Plugins iframes work without an app ID. They render server-side via Facebook's plugin endpoint, so your site doesn't need to load the FB SDK or have an App ID. (App IDs are required for OAuth login or for using the Graph API, which is a different feature.)
- Can I embed private posts?
- No. Facebook only allows embedding public posts. If the post is set to friends-only, friends-of-friends, or specific people, embedding will fail. Re-share publicly first, or take a screenshot if appropriate.
- Will the embed track my visitors?
- Yes. Facebook's plugin SDK uses cookies to maintain user session and to record analytics. Logged-in Facebook users see personalized recommendations after viewing the embed. Disclosure: if your privacy policy mentions third-party tracking, Facebook embeds qualify and should be listed. For privacy-respecting alternatives, link to the post instead of embedding.
- How do I get the right URL format?
- Open the Facebook post, click the timestamp (or three-dot menu → Embed) — Facebook gives you both the canonical URL and a pre-built iframe. Use the URL with this tool for full customization, or just copy Facebook's iframe directly if you want their default settings.
- Will the embed work with Instagram or other Meta-properties?
- Instagram has its own embed format (different endpoint, different iframe). For Instagram embeds, use a dedicated Instagram embed generator. Threads (Meta's Twitter-alternative) uses yet another format. Each Meta property has its own plugin endpoint.
- Why does the embed sometimes fail to render?
- Common causes: (1) post is private or has restricted audience; (2) post was deleted; (3) Facebook's plugin endpoint had a temporary outage (rare but happens); (4) ad-blockers or privacy extensions blocking the plugin script; (5) corporate networks blocking facebook.com. The iframe degrades gracefully in most cases, showing the fallback link to the original post.
Advertisement
Learn more
Guides about this topic
- Using Our Tools · GuideHow to generate QR codesMake QR codes for URLs, WiFi, vCard, or text. Learn error correction and sizing, then generate your QR code online free with no sign-up in seconds.
- Using Our Tools · GuideHow to create a strong passwordGenerate a strong password instantly online for free. Build high-entropy passphrases following NIST 2026 rules with no download needed.
- Developers & Technical · GuideHow to encode and decode Base64Understand the 3-to-4 mechanic and 33% overhead for standard, URL-safe, and MIME Base64. Free online reference to avoid common mistakes, no download needed.
- Design & Media · GuideHow to choose a color paletteBuild accessible color palettes using HSL theory, monochromatic to triadic schemes, WCAG contrast checks, and dark mode tips. Free, no-download guide.
- Developers & Technical · GuideHow to use JWT tokens securelyImplement secure JWT authentication by choosing RS256, setting expiration, using httpOnly cookies, and preventing 'alg: none' attacks in your browser for free.
- Design & Media · GuideHow to design a faviconCreate favicons that render perfectly from 16×16 to 512×512 with dark mode support. Learn the right HTML tags and web manifest setup free online.
Explore more developer utilities tools
- Port Number LookupSearch over 140 well-known TCP and UDP ports by number or service name. Free online reference tool with no sign-up, covering web, mail, DNS, and more.
- Test Credit Card NumbersReference table of canonical test card numbers from Stripe, Adyen, and Braintree sandbox docs. Plus Luhn validator + network detector.
- IPv6 Expander & ShortenerFormat IPv6 addresses to canonical form, handling zone IDs and prefixes, instantly online—free tool with no registration required.
- Htpasswd GeneratorCreate .htpasswd lines for Apache or nginx basic auth with browser-only SHA hashing instantly. Includes config snippets and a free online tool with no registration.
- Chmod CalculatorCalculate Unix file permissions: octal (755, 644) ↔ symbolic (rwxr-xr-x) ↔ rwx checkboxes. Covers setuid, setgid, sticky bit. With presets.
- Excel Formula ExplainerPaste any formula and get a plain-English breakdown of 60+ functions online free—no sign-up required, in your browser.