Created
March 19, 2016 18:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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