为什么浏览时可以获取使用图形 API 无法获取的信息?

发布于 2024-12-07 20:53:26 字数 164 浏览 0 评论 0原文

当我浏览非我朋友的用户的个人资料(登录和注销时)时,我可以使用个人资料信息,例如兴趣、教育和工作历史。 然而,使用图形 api,使用我的用户提供的具有最大权限的访问令牌,无法获得此信息。

这是为什么?我是否做错了什么,或者 Facebook 的政策是在浏览网站时比使用图形 API 时公开更多信息?

There is profile information, like interests, education and work history, that is available to me when I am browsing profiles of users who are not my friends (while logged in and while logged out).
However this information is not available using the graph api, using an access token given by my user with the maximum permissions possible.

Why is that? Am I doing something wrong or is that the policy of Facebook to expose more information while browsing the site than while using the graph api?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷…雨湿花 2024-12-14 20:53:26

我想这就是使用 API 时的工作原理,您可以通过点击任何用户的图表来轻松确认这一点(甚至无需连接到 Facebook):

https://graph.facebook.com/zuck

结果:

{
   "id": "4",
   "name": "Mark Zuckerberg",
   "first_name": "Mark",
   "last_name": "Zuckerberg",
   "link": "http://www.facebook.com/zuck",
   "username": "zuck",
   "gender": "male",
   "locale": "en_US"
}

现在有了用户 access_token 我得到了几个更多字段:

{
  "id": "4",
  "name": "Mark Zuckerberg",
  "first_name": "Mark",
  "last_name": "Zuckerberg",
  "link": "https://www.facebook.com/zuck",
  "username": "zuck",
  "gender": "male",
  "locale": "en_US",
  "updated_time": "2011-10-02T21:26:46+0000",
  "type": "user"
}

回到你的问题:

Facebook 在浏览网站时是否会公开更多关于公共个人资料的信息?
使用图形 API 时?

I guess this is how things works when using the API, you could confirm this easily by hitting the Graph of any user (without even connecting to Facebook):

https://graph.facebook.com/zuck

Result:

{
   "id": "4",
   "name": "Mark Zuckerberg",
   "first_name": "Mark",
   "last_name": "Zuckerberg",
   "link": "http://www.facebook.com/zuck",
   "username": "zuck",
   "gender": "male",
   "locale": "en_US"
}

Now with a user access_token I got a couple more fields:

{
  "id": "4",
  "name": "Mark Zuckerberg",
  "first_name": "Mark",
  "last_name": "Zuckerberg",
  "link": "https://www.facebook.com/zuck",
  "username": "zuck",
  "gender": "male",
  "locale": "en_US",
  "updated_time": "2011-10-02T21:26:46+0000",
  "type": "user"
}

So back to your question:

Does Facebook expose more information about public profiles while browsing the site than
while using the graph api?

YES

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文