Skip to content

Instantly share code, notes, and snippets.

@wouterverweirder
Created March 19, 2016 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wouterverweirder/aec5e5a4bd14c77bdcba to your computer and use it in GitHub Desktop.
Save wouterverweirder/aec5e5a4bd14c77bdcba to your computer and use it in GitHub Desktop.
Log facebook usernames & ids of users liking your page - https://www.facebook.com/browse/page_fans/?page_id=__ENTER_PAGE_ID_HERE
var log = ""; Array.prototype.forEach.call(document.querySelectorAll('a[data-gt]'), function(a){ var gt = JSON.parse(a.dataset.gt); if(!gt.engagement || gt.engagement.eng_type !== "1") return; log += a.innerHTML + ': ' + gt.engagement.eng_tid + "\n"; }); console.log(log);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment