Skip to content

Instantly share code, notes, and snippets.

@Ademking
Created September 5, 2021 18:15
Show Gist options
  • Save Ademking/866f4478f9757af0ff761dcb92f1839e to your computer and use it in GitHub Desktop.
Save Ademking/866f4478f9757af0ff761dcb92f1839e to your computer and use it in GitHub Desktop.
Get facebook user id from url
let url = "https://www.facebook.com/AdemKouki.Officiel/"
fetch(`https://whopostedwhat.com/resolve.php?request=resolve&username=${url}`)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment