The \"old\" Facebook Graph API had a \"username\" field which could be used to create a human-readable profile URL. My username for example is \"sebastian.trug\" which resul
One of the ways could be to access facebook.com/{userid} using cURL and then follow the redirect.
The page rediects to facebook.com/{username}