Looking for Something? Search Afriwap now!!!
Add to Flipboard Magazine. | |

Has your Facebook Share button Stopped Working? Fix it now

Author Topic: Has your Facebook Share button Stopped Working? Fix it now  (Read 2949 times)

0 Members and 1 Guest are viewing this topic.

Offline Timi Dapsin

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,505
  • Today is that tomorrow you worried about yesterday
    • View Profile
Has your Facebook Share button Stopped Working? Fix it now
« on: December 19, 2013, 03:14:56 AM »

 Facebook officially deprecated the share button in favor of the like button earlier this year. A few days ago, I realized that the share button no longer displays on sites I manage. Trying to figure out what could be wrong, I checked those sites using a different browser and it was the same. Still in doubt, I used a different PC and even checked other websites just to be sure.
Across the web, a certain version of Facebook share button stopped working. The Share Button has been deprecated already a while ago but not yet completely d*ad. If it stops working on your website or blog, you only need to update your code.
Facebook deprecated the Share button on February 28, which means they no longer recommend its use in applications or on external web sites. Also, a certain version of Facebook share button was deprecated several years ago, and Facebook switched to serving the new JS SDK in its place on Monday, July 16. Perhaps the old one will be brought back to life later, but then I guess itís time to upgrade to the new version. Support has already been dropped for it so thereís no point complaining to Facebook.
 How to fix your share button I prefer using the share button because it lets me share to my fan pages, unlike the like button which Facebook now favors. I found three fixes to this which I think should do the trick.
 1. Using the official JD SDK version - Search for <html, leave a space and add xmlns:fb=Ēhttp://ogp.me/ns/fb#Ē just after it. The resulting code should lok like this:
Code: [Select]
<html xmlns:fb="http://ogp.me/ns/fb#" If this is already there, you donít need to do it again.
- In the body of your website where you want the code to display, paste this:
Code: [Select]
<div id="fb-root"></div>
 <script>(function(d, s, id) {
 var js, fjs = d.getElementsByTagName(s)[0];
 if (d.getElementById(id)) return;
 js = d.createElement(s); js.id = id;
 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=YOUR_APP_ID"; // appId must be valid
 fjs.parentNode.insertBefore(js, fjs);
 }(document, 'script', 'facebook-jssdk'));</script>
 <fb:share-button type="box_count">
 Hey, make sure you change these parameters for the code to work:
 *** YOUR_APP_ID Ė You must create a facebook application for this code to work.

*** You can change box_count to button_count if you want a smaller button instead of the large one with counter.
  You can use the demo above to see its perfectly working, you only need to follow the steps and do it right.
 2. Using Sharethis button If you donít want to mess around with these codes and just need a quick way to get it done, you can consider using Sharethis share buttons. I think they have a plugin for WordPress and if youíre adding it to your website, youíre allowed to customize the look and feel of the button before generating the code.
Implementing the code isnít that hard either, you only need to place the right code in the head section and the other one in the body section where you want the share button to appear. See the share buttons displayed below this post? Itís from Sharethis.
 3. Using the share bookmarklet If you donít own a website and only need a way to share any page on Facebook real fast, this is just what you need. Even if the page doesnít have a share button, you can still share it anyway as you just need to install the share button on your browser.
  Drag me to your Bookmarks Bar to quickly share any web page with your friends, even when youíre not on Facebook.
  If you canít see the Bookmarks Bar, Choose ďShow Bookmarks BarĒ from the View menu.
  After you drag the button to the Bookmarks Bar, it will look like this.
    Either of these three fixes should get you sharing on Facebook again. Personally, I prefer it to the like button and I wish itís not being deprecated.


Other Topics To Read

Powered by EzPortal