Facebook Like & Send ButtonInsert the Facebook Like and/or Send button to any post, page or template with this simple plugin. Also lets you add them via shortcode anywhere in your site!

Installation:

  1. Download the plugin direct from the Plugin Page at WordPress.
  2. Upload the whole plugin folder to your /wp-content/plugins/ folder.
  3. Go to the Plugins page and activate the plugin
  4. Check all the setting in the Settings area
  5. Hit Update

The shortcode:

You can insert the comment box manually in any page or post or template by simply using the following shortcode:

[fblikesend]

To enter the shortcode directly into templates using PHP, enter

echo do_shortcode('[fblikesend]');

You can also use the options below to override the the settings above.

  • url – leave blank for current URL
  • like – on/off
  • send – on/off
  • verb – like/recommend
  • faces – on/off
  • layout – standard/button_count/box_count
  • nested – on/off
  • width – in pixels, default is 450
  • font – arial, lucida grande, segoe ui, tahoma, trebuchet ms, verdana

An example using these options is

[fblikesend url="http://peadig.com/wordpress-plugins/facebook-like-send-button/" like="on" send="on" verb="recommend" faces="no"]

If it doesn’t work at first…

  • Check your settings to see that XFBML and Open Graph are enabled
  • Make sure there are no conflicting plugins also running.
  • If everything but the button appears, this means that you need to enable XFBML and/or Open Graph in the settings. If this does not work you need to make sure you have this code as your <HTML>:
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
Alex Moss

Developed by

As well as being the co-founder of Peadig, Alex is also a Director of the online marketing company FireCask. He also develops many WordPress plugins with over 500,000 combined downloads.

Leave a Reply