If you haven’t been able to find a solution since the Facebook share button stopped displaying on your site’s pages, today’s post will provide a work around for you.  Although Facebook has deprecated the share button, it’s not completely dead yet.  You only need to update your code.

How To Fix Your Facebook Share Button

First, we’ll be able to use the same external JavaScript call-out as before.  As a reminder, this line of code is to be placed in between the <head> and </head> tags of the HTML of the page.

<script type=”text/javascript” src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share”></script>

See screenshot below for an example of code placement.

Facebook Share Button JavaScript Code

The snippet of code that you had placed on your web page before, where you wanted the button to render is where the update is needed.

Previous code placed where you want the button to render on the page:

<a name=”fb_share” type=”button” share_url=”http://www.yoursite.com/” href=”http://www.facebook.com/sharer.php”></a>

Updated code placed where you want the button to render on the page:

<fb:share-button type=”button” href=”http://www.yoursite.com/”></fb:share-button> or <fb:share-button type=”button” href=”http://www.yoursite.com/” />

Simply update www.yoursite.com with the URL of the page and you’re all set.  You’ll be able to provide site visitors the option to go straight to sharing your page again, at least for now.  Over time, this method will most likely cease to work since Facebook has already dropped tech support for it.

Another Way To Share

Facebook seems to have a replacement or at least something that is similar in concept to the old share button called Feed Dialog.  Feed Dialog prompts the user to publish an individual story to a profile’s feed.  Visit the Facebook Developers‘ page for overview, example code and a sample of how Feed Dialog works.