Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
    • Like Button
    • Send Button
    • Follow Button
    • Comments
    • Activity Feed
    • Recommendations Box
    • Recommendations Bar
    • Like Box
    • Login Button
    • Registration
    • Facepile
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • Plugins
    • Activity Feed
    • Comments
    • Facepile
    • Follow Button
    • Like Box
    • Like Button
    • Login Button
    • Recommendations Bar
    • Recommendations Box
    • Registration
    • Send Button
    • Share Dialog
    • Shared Activity
    • fb:name
    • fb:profile-pic
  • Beta Plugins
    • Migrations
      • Subscribe Button

    Like Box

    The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website. The Like Box enables users to:

    • See how many users already like this Page, and which of their friends like it too
    • Read recent posts from the Page
    • Like the Page with one click, without needing to visit the Page

    The minimum supported plugin width is 292px.

    After July 2013 migration, Like box will require an absolute URL in the 'href' parameter.

    (?)
    (?)
    (?)
    Show Faces (?)
    (?)
    light
    • light
    • dark
    Stream (?)
    Show Border (?)
    Header (?)
    Get Code

    Attributes

    • href - the URL of the Facebook Page for this Like Box. Note: After July 2013 migration, href should be an absolute URL
    • width - the width of the plugin in pixels. Default width: 300px.
    • height - the height of the plugin in pixels. The default height varies based on number of faces to display, and whether the stream is displayed. With the stream displayed, and 10 faces the default height is 556px. With no faces, and no stream the default height is 63px.
    • colorscheme - the color scheme for the plugin. Options: 'light', 'dark'
    • show_faces - specifies whether or not to display profile photos in the plugin. Default value: true.
    • stream - specifies whether to display a stream of the latest posts from the Page's wall
    • header - specifies whether to display the Facebook header at the top of the plugin.
    • show_border - specifies whether or not to show a border around the plugin, default true. Set to false to style the iframe with your custom CSS.
    • force_wall - for Places, specifies whether the stream contains posts from the Place's wall or just checkins from friends. Default value: false.

    How do I know when a user clicks a Like button?

    If you are using the XFBML version of the button, you can subscribe to the 'edge.create' event through FB.Event.subscribe.

    Updated on Friday
    Facebook © 2013 · English (US)
    AboutAdvertisingCareersPlatform PoliciesPrivacy Policy