This page last changed on Mar 27, 2012 by jed.wheeler@involver.com.
Overview
Allows you to add a facebook like button to your content items. This ties in with Facebook's OpenGraph infrastructure and accepts all of the parameters as the social plugin.
General Considerations
This feature cannot be used as a voting metric as doing so is a violation of Facebook's TOS and will get your page deleted. For this reason "Likes" are not counted towards popularity sorting for the Contest feature or in sorting partials.
Caching Considerations
There are no caching considerations.
Attributes
name |
type |
required |
description |
layout |
string |
no |
Can be either 'standard', 'button_count', 'box_count' |
show_faces |
boolean |
no |
Show faces of users that liked the content |
width |
integer |
no |
Width of the widget |
action |
string |
no |
Verb to display on the button, defaults to 'Like' |
font |
string |
no |
Options: 'arial', 'lucida grande', 'segoe ui', 'tahoma', 'trebuchet ms', 'verdana' |
colorscheme |
string |
no |
Options: 'light', 'dark' |
ref |
string |
no |
A label for tracking referrals, this is added as params on the link |
href |
string |
no |
Allows you to override the url to be liked |
send |
boolean |
no |
Adds a facebook_send button in-line next to the like button |
Button Layout Types
- standard: displays social text to the right of the button and friends' profile photos below. Minimum width: 225 pixels. Default width: 450 pixels. Height: 35 pixels (without photos) or 80 pixels (with photos).
- button_count: displays the total number of likes to the right of the button. Minimum width: 90 pixels. Default width: 90 pixels. Height: 20 pixels.
- box_count: displays the total number of likes above the button. Minimum width: 55 pixels. Default width: 55 pixels. Height: 65 pixels.
Screen Shots
Before Liking:

After Liking:

Examples
{% rss_feed %}
{% for item in rss_feed.feed_items %}
<h3>{{item.title}}</h3>
<div class="like-wrapper">{% facebook_like item %}</div>
{% endfor %}
{% endrss_feed %}
Related Topics
|