React Facebook

Page

Embeds a Facebook Page plugin showing timeline, events, and messages.

The Page component renders the Facebook Page plugin using the fb-page XFBML class. It can display a page's timeline, upcoming events, and a messaging interface.

Try it live

Toggle tabs, headers, and facepile in the Playground.

Import

import { Page } from 'react-facebook';

Props

PropTypeDefaultDescription
hrefstringCurrent page URLThe URL of the Facebook Page.
tabsstringundefinedComma-separated list of tabs to render. Options: 'timeline', 'events', 'messages'.
widthnumber | stringundefinedWidth of the plugin in pixels (min 180, max 500).
heightnumber | stringundefinedHeight of the plugin in pixels (min 70).
hideCoverbooleanfalseHide the cover photo in the header.
showFacepilebooleanfalseShow profile photos of friends who like the page.
hideCTAbooleanfalseHide the custom call-to-action button (if available).
smallHeaderbooleanfalseUse a smaller header.
adaptContainerWidthbooleanfalseAdapt the plugin width to its parent container.
lazybooleanfalseLazy-load the plugin.
classNamestring''Additional CSS class names appended to the container.

Usage

Basic

<Page href="https://www.facebook.com/YourPage" />

Timeline with Facepile

<Page href="https://www.facebook.com/YourPage" tabs="timeline" width={500} height={600} showFacepile />

Multiple Tabs

<Page
  href="https://www.facebook.com/YourPage"
  tabs="timeline,events,messages"
  width={400}
  height={500}
  smallHeader
  adaptContainerWidth
/>

Minimal

<Page href="https://www.facebook.com/YourPage" hideCover hideCTA smallHeader width={340} height={130} />

On this page