Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook user url by id

Tags:

facebook

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

like image 353
Timmy Avatar asked Oct 10 '12 20:10

Timmy


People also ask

How do I find a Facebook user URL?

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.

What is a Facebook ID?

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.


1 Answers

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!

like image 196
Syed I.R. Avatar answered Oct 01 '22 22:10

Syed I.R.