【问题标题】:How can I access the public data on a user's profile page?如何访问用户个人资料页面上的公共数据?
【发布时间】:2013-02-07 13:45:23
【问题描述】:

为了争论,假设我们有一个人几乎公开了他们页面上的所有内容 - 工作场所、家乡、位置、生日、电子邮件、电话号码、帖子等。

如何使用图形 API 访问这些信息?

目前我正在使用$facebook->api('/'.$id;,它返回 id、first_name、last_name、link、gender、locale 和 updated_time。

【问题讨论】:

  • 你必须使用fields参数——developers.facebook.com/docs/reference/api/user
  • 那行不通。我尝试在 facebook 开发网站上使用 Graph API Explorer,使用字符串 100005254861029?fields=education 我只返回 { "id": "100005254861029" }
  • 它在“权限”列的文档页面上说了什么......?啊哈,给你。
  • user_education_history 无论如何都是默认选择的..

标签: facebook facebook-graph-api permissions profile


【解决方案1】:

否则,您可以尝试第三方服务,例如 LoginRadius,它可以为您提供现成的代码来获取所有这些详细信息

【讨论】:

  • 我想从其他个人资料而不是用户的个人资料中获取公开详细信息。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-01-23
  • 1970-01-01
  • 1970-01-01
  • 2015-10-06
  • 1970-01-01
相关资源
最近更新 更多