Facebook Share shortcode

Use a shortcode to display a Facebook Share button on your website.

Usage:

[facebook_share]Insert your text here[/facebook_share]
.

Code Snippet:

<?php
function facebook_share3() {
    return &#x27;&lt;div class=&quot;fbshare&quot;&gt;&lt;script src=&quot;http://widgets.fbshare.me/files/fbshare.js&quot;&gt;&lt;/script&gt;&lt;/div&gt;&#x27;;
}
add_shortcode( &#x27;facebook_share&#x27;, &#x27;facebook_share3&#x27; )
?>

Posted in Social