Skip to main content

Facebook Page

Generate Facebook page plugin embed code

Generate Facebook page plugin embed code to display page info, posts, and follow button. Customize tab, width, and height for optimal integration.

Display Options

How to generate a Facebook page embed?

Generating a Facebook page embed is straightforward: Copy the Facebook page URL from your browser — it looks like https://www.facebook.com/PAGENAME. Paste the URL into the input box on our tool. Configure the plugin settings: choose the tab view (timeline, posts, or events), set the width (minimum 340 pixels), set the height (minimum 100 pixels), and toggle the cover photo and friends' faces visibility. Click Generate to produce the embed code. The HTML with the Facebook SDK reference appears in the output box — copy it and paste directly into your webpage.

Related Tools

You May Also Need

Facebook page plugin tabs and content types

Facebook page plugins support different tab configurations that control what content is displayed. The timeline tab shows the page's recent posts in a scrollable feed — this is the default and most popular option. The posts tab displays only published posts without the full timeline context, resulting in a cleaner, more compact layout. The events tab shows upcoming events from the page calendar, useful for event promotion websites. The tab parameter accepts values: timeline, posts, or events. Each tab type has different height requirements — timeline needs at least 400px, posts needs 200px minimum, and events needs 300px. The width parameter controls horizontal scaling from 340px up to the container maximum. Facebook automatically adjusts post heights based on content type — text-only posts are shorter than posts with images or videos.

Facebook page plugin vs feed embed differences

The Facebook page plugin and feed embed serve similar purposes but have technical differences. The page plugin (div class='fb-page') is the original Facebook social plugin that loads the full SDK and renders an interactive widget. The feed embed (div class='fb-page-feed') is a newer implementation that uses a lighter rendering approach with fewer SDK dependencies. The page plugin offers more customization options including tab selection, while the feed embed focuses on simplicity with fewer configuration parameters. Both require the Facebook JavaScript SDK, but the feed embed tends to load faster because it makes fewer API calls. For most use cases, the page plugin provides better feature parity. Choose the feed embed when you need a lightweight solution and don't require tab switching functionality.

Frequently Asked Questions (FAQs)

What's the minimum width for a Facebook page plugin?

The minimum width is 340 pixels. Below this threshold, the plugin may not render correctly. Facebook recommends at least 500px for optimal display of post content and engagement metrics.

Can I remove the Facebook logo from page plugins?

No, the Facebook branding is mandatory per their Platform Policies. The plugin always includes Facebook attribution and a link back to the page. Removing branding violates Facebook's terms.

Why does my Facebook plugin show old posts?

Facebook caches page content for performance. New posts may take several minutes to appear in embedded plugins. Clearing the cache requires waiting or contacting Facebook support for urgent updates.

Can I embed multiple Facebook pages on one site?

Yes, you can embed multiple Facebook pages. Each plugin loads independently. However, each additional plugin increases page weight due to repeated SDK initialization. Consider consolidating to a single plugin when possible.

Does Facebook page plugin support dark mode?

Facebook plugins adapt to the visitor's browser theme preference automatically. If the browser is in dark mode, the plugin renders with a dark background. You cannot force a specific theme through embed parameters.

Can users comment on embedded Facebook posts?

Comments are enabled by default on embedded posts. Users can like, comment, and share directly from the embedded plugin. Comments appear in real-time and sync with the main Facebook page.

Recently Used Tools