function getfbcount(url, name) {
var fbshares;
var fblikes;
$.getJSON('http://graph.facebook.com/?ids=' + url, function(data){
fbshares = data[url].shares;
$('.facebook .ng-binding-shares').html(fbshares + ' Shares');
});
$.getJSON('http://graph.facebook.com/' + name, function(data){
fblikes = data[name].likes;
$('.facebook .ng-binding-likes').html(fblikes + ' Likes');
});
}
function gettwcount(url) {
var tweets;
$.getJSON('http://urls.api.twitter.com/1/urls/count.json?url=' + url + '&callback=?', function(data){
tweets = data.count;
$('.twitter .ng-binding').html(tweets + ' Tweets');
});
}
function getpincount(url) {
$.getJSON("http://api.pinterest.com/v1/urls/count.json?url=" + url + "&callback=?", function(json) {
$('.pinterest .ng-binding').html(json.count + ' Pins');
});
}
function getlicount(url) {
$.getJSON("http://www.linkedin.com/countserv/count/share?url=" + url + "&callback=?", function(json) {
$('.linkedin .ng-binding').html(json.count + ' Links');
});
}
$(document).ready(function($){