I have a list of FB ids, is there a canon way of constructing their FB url without a graph query?
For example, I have ids 3, 4, 5, and i want the Facebook URL for them without using the graph api and save them down
Personal profile mobile device viewOpen Facebook on your mobile device, navigate to the profile page, and tap the three dots. Scroll down to the Your Profile Link section and tap Copy Link. The link has been copied to your clipboard. Tap OK to exit the screen.
Your Facebook ID is a Numbers string that is connected to your Facebook profile. Facebook automatically assigns a User ID to every profile. Anyone with your User ID can see your profile and Public information. There are many apps on Facebook that require your Numeric User ID to connect to your Facebook profile.
UPDATE 2: This information is no more given by facebook. There is an official announcement for the behavior change (https://developers.facebook.com/blog/post/2018/04/19/facebook-login-changes-address-abuse/) but none for its alternative.
Yes, Just use this link and append your ID to the id
parameter:
https://facebook.com/profile.php?id=<UID>
So for example:
https://facebook.com/profile.php?id=4
Will redirect you automatically to https://www.facebook.com/zuck
Which is Mark Zuckerberg's profile.
If you want to do this for all your ids, then you can do it using a loop.
If you'd like, I can provide you with a snippet.
UPDATE: Alternatively, You can also do this:
https://facebook.com/<UID>
So that would be: https://facebook.com/4 which would automatically redirect to Zuck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With