4 ms·
Why are you going via your server? Couldn't you have the JS get the data from Facebook's Graph API directly?
by PanMan 14y ago
Why are you going via your server? Couldn't you have the JS get the data from Facebook's Graph API directly?
- woutervdb 14y agoI wasn't expecting this much traffic, so I didn't really care about server performance because it was irrelevant. I only posted it to my Facebook and Twitter, and now it has around 25 likes, I've been twittered by a guy with 4K followers and someone appears to have bloggd me. It's awesome, but very hard to keep it online. I may implement client-side JS in the near future. Thanks for the suggestions!
- dpritchett 14y agoYep, 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.