Facebook用户网址(按ID) [英] Facebook user url by id

查看:244
本文介绍了Facebook用户网址(按ID)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个FB ID列表,有没有一种无需图表查询即可构造其FB URL的经典方法?

I have a list of FB ids, is there a canon way of constructing their FB url without a graph query?

例如,我有ID 3、4、5,并且我希望它们的Facebook URL不使用图形API并将其保存下来

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

推荐答案

更新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!

这篇关于Facebook用户网址(按ID)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆