facebookpages = new Array(); facebookpagescount = new Array(); function fbFetch(){ facebookpages['http://www.inc.com/coolest-college-start-ups-2013/spencer-woodman/familyleaf-wesley-zhao-ajay-mehta.html'] = new Array("Ajay Mehta, Henry Liu, Wesley Zhao","FamilyLeaf","Family-based social network ","Wesley Zhao and Ajay Mehta believe their site FamilyLeaf will fill the last big frontier in social networking--a place just for families.","5b6d8282c8513","http://www.inc.com/uploaded_files/image/155x90/familyleaf-pano_24451.jpg","http://www.inc.com/coolest-college-start-ups-2013/spencer-woodman/familyleaf-wesley-zhao-ajay-mehta.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/spencer-woodman/jama-cocoa-jamasen-rodriguez.html'] = new Array("Jamasen Rodriguez","Jama Cocoa","Chocolatier supporting the arts","Johns Hopkins student Jamasen Rodriguez wants truffles to be indispensable--the new latte to urban sophisticates.","8e510bf36105e","http://www.inc.com/uploaded_files/image/155x90/jamacocoa-pano_24394.jpg","http://www.inc.com/coolest-college-start-ups-2013/spencer-woodman/jama-cocoa-jamasen-rodriguez.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/lindsay-blakely/dan-shipper-firefly.html'] = new Array("Dan Shipper, Patrick Leahy, and Justin Meltzer","Firefly","Instant screensharing","Screensharing is hardly a new idea. But these three hackers from Penn figured out how to make it impossibly easy--no special software required.","32b76b642582a","http://www.inc.com/uploaded_files/image/155x90/firefly-pano_24396.jpg","http://www.inc.com/coolest-college-start-ups-2013/lindsay-blakely/dan-shipper-firefly.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/abigail-tracy/waterdrop-josh-weingart.html'] = new Array("Josh Weingart","WaterDrop Shop","Eco-friendly sandals","Drilling clean water wells abroad inspired Josh Weingart to employ Kenyan shoemakers to make sandals he can sell with the purpose of funding more wells.","cf9fd8f0cae2e","http://www.inc.com/uploaded_files/image/155x90/waterdrop-pano_24412.jpg","http://www.inc.com/coolest-college-start-ups-2013/abigail-tracy/waterdrop-josh-weingart.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/allison-fass/ben-biron-jonathan-ofir-alcohoot.html'] = new Array("Ben Biron and Jonathan Ofir","Alcohoot","Smartphone breathalyzer","Two former Israeli soldiers took a harsh reality--the high rate of alcohol-related deaths--and turned it into a potentially big, life-saving business opportunity.","af897beda0592","http://www.inc.com/uploaded_files/image/155x90/alcohoot-pano_24419.jpg","http://www.inc.com/coolest-college-start-ups-2013/allison-fass/ben-biron-jonathan-ofir-alcohoot.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/jeremy-quittner/flightcar-shared-wheels-shri-ganeshram.html'] = new Array("Shri Ganeshram, Kevin Petrovic, Rujul Zaparde","FlightCar","Airbnb of car rentals at airports","Flightcar's three founders help you rent a car for cheap, though it belongs to someone else.","61b16a90e8fc1","http://www.inc.com/uploaded_files/image/155x90/flightcar2-pano_24407.jpg","http://www.inc.com/coolest-college-start-ups-2013/jeremy-quittner/flightcar-shared-wheels-shri-ganeshram.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/issie-lapowsky/balbus-speech-jack-mcdermott.html'] = new Array("Jack McDermott","Balbus Speech","Mobile apps for speech therapy","Jack McDermott wants to give people with speech disorders something he never had: therapy that's cheap and accessible.","6cf80abaa7ac7","http://www.inc.com/uploaded_files/image/155x90/balbus-pano_24383.jpg","http://www.inc.com/coolest-college-start-ups-2013/issie-lapowsky/balbus-speech-jack-mcdermott.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/issie-lapowsky/vires-engineering-jordan-greene.html'] = new Array("Harshil Goel, Jordan Greene, Jason Forslin, Jeremy Fiance, Zachary Hargreaves, Matt Fay, Timothy Lee","VIRES","Engineering innovators","This six-person founding team has four different products in four different industries and is shooting for the sky (in some cases, literally).","f118bbdd91d31","http://www.inc.com/uploaded_files/image/155x90/viresteam-pano_24387.jpg","http://www.inc.com/coolest-college-start-ups-2013/issie-lapowsky/vires-engineering-jordan-greene.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/kimberly-weisul/flash-food-recovery-eric-lehnhardt.html'] = new Array("Eric Lehnhardt, Katelyn Keberle, Mary Hannah Smith, Ramya Baratam, Jake Irvin, Steven Hernandez, Loni Lehnhardt","FlashFood","Food coordination for the hungry","Flash Food Recovery uses a smartphone app to help get excess food from restaurants, hotels, and convention centers to the people who need it most.","1ec7f72bbd695","http://www.inc.com/uploaded_files/image/155x90/flashfood-pano_24388.jpg","http://www.inc.com/coolest-college-start-ups-2013/kimberly-weisul/flash-food-recovery-eric-lehnhardt.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/nicole-marie-richardson/jivehealth-dennis-ai.html'] = new Array("Dennis Ai","JiveHealth","Mobile game fighting obesity","Former video game (and junk food) addict Dennis Ai of Northwestern created a game that teaches kids about nutrition. Michele Obama is a big fan.","dbb3bb776a50b","http://www.inc.com/uploaded_files/image/155x90/jivehealth-pano_24378.jpg","http://www.inc.com/coolest-college-start-ups-2013/nicole-marie-richardson/jivehealth-dennis-ai.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/kathryn-dill/groudan-lau-kee-patel-reyes-paytango.html'] = new Array("Brian Groudan, Kelly Lau-Kee, Umang Patel, Christian Reyes","PayTango","Fingerprint-based payments system","Four Carnegie Mellon students solved the problem of the lost debit card and forgotten keys by replacing them with something you never leave behind: fingerprints.","4a63787bf2897","http://www.inc.com/uploaded_files/image/155x90/PayTango-Team_24415.jpg","http://www.inc.com/coolest-college-start-ups-2013/kathryn-dill/groudan-lau-kee-patel-reyes-paytango.html"); facebookpages['http://www.inc.com/coolest-college-start-ups-2013/jillian-donfro/celeste-curry-soulscarf.html'] = new Array("Celeste Curry","SoulScarf","Scarves for a cause","Celeste Curry's SoulScarf appeals to young women who have both a budget consciousness and a social consciousness.","f4daa1886374e","http://www.inc.com/uploaded_files/image/155x90/soulscarf-pano_24391.jpg","http://www.inc.com/coolest-college-start-ups-2013/jillian-donfro/celeste-curry-soulscarf.html"); //Set Url of JSON data from the facebook graph api. make sure callback is set with a '?' to overcome the cross domain problems with JSON url = new Array(); for(var i in facebookpages) { url[i] = "http://graph.facebook.com/"+i+"?callback=?"; //console.log("++++++"+url[i]+"++++++"); $.getJSON(url[i],function(json){ if(json.shares!=undefined) { facebookpagescount[json.id] = json.shares; } else { facebookpagescount[json.id] = 0; } }); } }; function fbDisplay() { html = ""; console.log("====="+facebookpagescount+"====="); fbcount = sortByNumericValue(facebookpagescount); console.log("++++++"+fbcount+"++++++"); var parts = window.location.search.substr(1).split("&"); var $_GET = {}; for (var i = 0; i < parts.length; i++) { var temp = parts[i].split("="); $_GET[decodeURIComponent(temp[0])] = decodeURIComponent(temp[1]); } if($_GET['vid']) { showvideo($_GET['vid']); } x = 1; for(var i in fbcount) { //console.log("++++++"+x+"++++++"); if(x==1 && !$_GET['vid']) { showvideo(i); } html+= "
"+facebookpages[i][1]+"
"+facebookpagescount[i]+" Likes
"+facebookpages[url][1]+"
Founders: "+facebookpages[url][0]+" "+facebookpages[url][3]+" Full Profile
"; $('#videoframe').html(videohtml); } //initiate the calls to Facebook graph API fbFetch(); //when page is loaded, write out results of API call $(document).ready(function() { setTimeout(function(){fbDisplay()},3000); });