From 9fefe3227918b3c514e0478812f4c839f864db37 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 23 Jan 2017 17:55:26 +0100 Subject: [PATCH] Disabled share counter for Facebook --- wcfsetup/install/files/js/WCF.Message.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 7a8cb44354..fd0cf76095 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -3230,7 +3230,7 @@ WCF.Message.Share.Page = Class.extend({ var self = this; this._provider = { facebook: { - fetch: function() { self._fetchFacebook(); }, + fetch: undefined, link: $container.find('.jsShareFacebook'), share: function() { self._share('facebook', 'https://www.facebook.com/sharer.php?u={pageURL}&t={text}', true); } }, @@ -3435,11 +3435,7 @@ WCF.Message.Share.Page = Class.extend({ * Fetches number of Facebook shares. */ _fetchFacebook: function() { - this._fetchCount('https://graph.facebook.com/fql?q=SELECT%20share_count%20FROM%20link_stat%20WHERE%20url=%27{pageURL}%27', $.proxy(function(data) { - if (data.data[0].share_count) { - this._provider.facebook.link.children('span.badge').show().text(data.data[0].share_count); - } - }, this)); + /* Facebook no longer offers a public API */ }, /** -- 2.20.1