简体   繁体   English

Facebook通过ID获取全名而没有访问令牌

[英]Facebook get full name by ID without acces token

Is is possible to get someones name (full name) only by his userID? 是否可以通过他的userID获取某人的姓名(全名)? (without access token) (没有访问令牌)

https://graph.facebook.com/USERID/?fields=name The API indicates that an access token is required. https://graph.facebook.com/USERID/?fields=name该API表示需要访问令牌。

But if you visit a Facebook profile manually you will get their name: https://www.facebook.com/profile.php?id=USERID 但如果您手动访问Facebook个人资料,您将获得他们的名字: https//www.facebook.com/profile.php?id = USERID

For this, no further verification is required and anyone can see it, isn't it possible for me to get a name from that page? 为此,不需要进一步验证,任何人都可以看到它,我是不是可以从该页面获取名称? (for example, the full name is in the page title, can I get it from there?) (例如,全名在页面标题中,我可以从那里获取吗?)

Thanks in advance 提前致谢

Simply you cannot access Facebook without authenticating. 如果没有身份验证,您无法访问Facebook。 This is not possible . 这是不可能的

But if you visit a Facebook profile manually you will get the name: https://www.facebook.com/profile.php?id=USERID 但如果您手动访问Facebook个人资料,您将获得以下名称: https//www.facebook.com/profile.php?id = USERID

You can get some people profiles by above URL, only when you are logged into Facebook. 只有当您登录Facebook时,才能通过以上URL获取某些人员个人资料。 Did you try to access it without login to Facebook? 您是否尝试在不登录Facebook的情况下访问它?

Answer your question: Is is possible to get someones name (full name) only by his userID? 回答你的问题: 是否可以通过他的用户ID获取某人的姓名(全名)? (without access token) (没有访问令牌)

No, you can't. 不,你不能。

How about using app access token? 如何使用app访问令牌? An app access token never experied. 从未体验过应用访问令牌。

https://graph.facebook.com/USER_ID/?fields=name&access_token=APP_ACCESS_TOKEN https://graph.facebook.com/USER_ID/?fields=name&access_token=APP_ACCESS_TOKEN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM