Last active
April 22, 2025 11:47
-
-
Save hkscsheph/598348f412e1771c624c775b5a352f2c to your computer and use it in GitHub Desktop.
Shortest Facebook Post Share Link (From pfbid to fbid) inspired by: https://gist.github.com/t-wy/66faed8679d127793891ecb775efdaa9
This file contains hidden or 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
copy( | |
'fb.com/'+ | |
[...document.getElementsByTagName("script")] | |
.find(x => x.innerHTML.includes("share_fbid")) | |
.innerText.match(/share_fbid":"(.+?)",/)[1] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment