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
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.
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.
Debate