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); }
},
* 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 */
},
/**