且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Facebook用户网址(按ID)

更新时间:2023-11-27 13:55:04

更新2:此信息不再由facebook提供.行为更改有官方公告(

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.

是的,只需使用此链接并将您的ID附加到id参数:

Yes, Just use this link and append your ID to the id parameter:

https://facebook.com/profile.php?id=<UID>

例如:

https://facebook.com/profile.php?id=4

将自动将您重定向到Mark Zuckerberg的个人资料https://www.facebook.com/zuck.

Will redirect you automatically to https://www.facebook.com/zuck Which is Mark Zuckerberg's profile.

如果要对所有ID都执行此操作,则可以使用循环来执行.

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>

因此它将是: https://facebook.com/4 ,它将自动重定向到Zuck!

So that would be: https://facebook.com/4 which would automatically redirect to Zuck!