Update: This development of this plugin has been discontinued
So Facebook announced this new like button that everyone can implement on the web. This plugin makes it easy to add this button to your wordpress blog. Here is how Facebook describes it:
The Like button enables users to make connections to your pages and share content back to their friends on Facebook with one click. Since the content is hosted by Facebook, the button can display personalized content whether or not the user has logged into your site. For logged-in Facebook users, the button is personalized to highlight friends who have also liked the page.
If you have questions, comments or feedback please leave a comment on this page.
More info about like button on facebook.
Shortcode syntax
Example
[fb_like_button_standard] – shows the button in standard layout.
[fb_like_button_count] – shows the button in button_count layout.
Example with optional parameters
[fb_like_button_count show_faces="1" action="like" font="arial" iframe_style="margin:10px;"]
Optional parameters:
- width = numeric, width in pixels
- height = numeric, height in pixels
- action = (like / recommend), Verb to display
- font = (arial / lucida grande / segoe ui / tahoma / trebuchet ms / verdana)
- colorscheme = (light / dark)
- iframe_style = custom css style for iframe/xfbml
Screenshots
Example output
Configuration
Frequently Asked Questions
How do I turn off the button on a single post?
Give the post a custom field with the key “facebook_like_button”, and the value “suppress”. You can do this for as many posts as you want. If you remove the custom field, the button will re-appear on that post.
Why doesn’t my like buttons have a comment form?
The comment form doesn’t work when you use the iframe version of the like button. To fix this you have to select XFBML as you output and add a Facebook App ID. Dont forget to set a correct “Connect URL” for your Facebook Application you tend to use.
Why doesn’t the comment form show when I use XFBML?
Make sure you have added a Facebook App ID. If you don’t have one you can create one here. Make sure the “Connect URL” in the Facebook Application Connect Settings has the same url as your wordpress site.
How can I manually position the plugin in my theme ?
You code use the following code.
//display standard button <?php echo facebook_like_button_plugin_sc_standard($options); ?> //dissplay button_count button <?php echo facebook_like_button_plugin_sc_count($options); ?>
$options is an array with same options as the shortcode. If you want to use your defaults just pass an empty array as argument.
How can I add the button as a Widget in the sidebar?
Add the following code to your themes functions.php file:
add_filter('widget_text', 'do_shortcode');
This allows you to add shortcodes in Text Widgets.
Pingback: How to insert social share buttons [facebook, twitter, buzz, digg] – rushlay
Pingback: The Best WordPress Social Media Plug-ins | Devlounge
Pingback: The Best WordPress Social Media Plug-ins | CSS Citadel
Pingback: The Best Wordpress Plugins for Your Wordpress Blog