Skip to content

Instantly share code, notes, and snippets.

@boyvanamstel
Created July 13, 2011 07:40
Show Gist options
  • Save boyvanamstel/1079891 to your computer and use it in GitHub Desktop.
Save boyvanamstel/1079891 to your computer and use it in GitHub Desktop.
Get the amount of likes and retweets for a url
# Facebook
https://api.facebook.com/method/fql.query?query=select%20total_count,like_count,comment_count,share_count,click_count%20from%20link_stat%20where%20url='http://hiplikejapie.nl/'&format=json&callback=blah
blah([{
total_count: 150,
like_count: 110,
comment_count: 34,
share_count: 6,
click_count: 0,
}])
# Twitter, does not support jsonp
http://urls.api.twitter.com/1/urls/count.json?url=hiplikejapie.nl
{
count: 13,
url: "http://hiplikejapie.nl/"
}
# Hyves, requires OAuth token..
http://data.hyves-api.nl/?url=http%3A%2F%2Fwww.hyves.nl%2Frespect%2F&ha_method=opengraph.get&oauth_consumer_key=Nl-SK2c5ZCBKB_I8hCF_zjPd&oauth_timestamp=1292324560&oauth_nonce=601552_357&ha_version=beta_2&oauth_signature_method=HMAC-SHA1&ha_format=xml&ha_fancylayout=false&oauth_signature=gGNzxagcSrTC77o8MZEzOPSb%2BoU%3D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment