Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Getting Started
  • Core Concepts
    • Social Design
    • Social Plugins
    • Facebook Login
    • Dialogs
    • Open Graph
  • Advanced Topics
  • Technical Guides
  • API Reference
  • SDK Reference
  • Plugins
    • Activity Feed
    • Comments
    • Facepile
    • Like Box
    • Like Button
    • Live Stream
    • Login Button
    • Recommendations Bar
    • Recommendations Box
    • Registration
    • Send Button
    • Share Links
    • Shared Activity
    • Subscribe Button
    • fb:name
    • fb:profile-pic
  • Beta Plugins
    • Migrations

      Like Box

      Core Concepts › Social Plugins › 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.

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

      Attributes

      • href - the URL of the Facebook Page for this Like Box
      • 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.
      • border_color - the border color of the plugin.
      • 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 about 11 months ago
      Facebook © 2012 · English (US)
      AboutAdvertisingCareersPlatform PoliciesPrivacy Policy