Skip to content

Comment on Number of likes of Mitt Romney on Facebook decreasing constantlyparent

Comments

Yep, this page handled entirely client-side, with some analytics JS on top for good measure:

    setInterval(
      function() {
        $.getJSON(
          "https://graph.facebook.com/mittromney",
          function(results) {
            console.log("Mitt Romney Like Count: " + results.likes)})},
      5000)
Edit: Love the idea, glad the page is out there! Great conversation starter.

Haven't tried it, but isn't that blocked by Javascript's cross-domain protection?

jQuery fixes that.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.