Facebook 应用程序访问令牌可以';检索用户公共数据

Facebook 应用程序访问令牌可以';检索用户公共数据,facebook,facebook-graph-api,facebook-graph-api-v2.2,Facebook,Facebook Graph Api,Facebook Graph Api V2.2,在Graph API中,如果我使用Graph API Explorer生成的令牌为以下查询发出请求: 我得到了一些结果: { "id": "993673107328394", "first_name": "Johann", "last_name": "Gomes", "link": "https://www.facebook.com/app_scoped_user_id/993673107328394/", "name": "Johann Gomes", "u

在Graph API中,如果我使用Graph API Explorer生成的令牌为以下查询发出请求:

我得到了一些结果:

{
  "id": "993673107328394", 
  "first_name": "Johann", 
  "last_name": "Gomes", 
  "link": "https://www.facebook.com/app_scoped_user_id/993673107328394/", 
  "name": "Johann Gomes", 
  "updated_time": "2015-01-19T16:00:34+0000"
}
但是,当我使用应用程序访问令牌时,会向我返回一个异常:

{
  "error": {
    "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", 
    "type": "GraphMethodException", 
    "code": 100
  }
}
这非常奇怪,因为用户和应用程序访问令牌之间的唯一区别似乎是其有效使用时间。有什么想法吗

提前谢谢

都在文档中:

  • 有许多名为public profile的字段具有
    public\u profile
    权限
  • 必须使用具有相关“扩展配置文件”权限的访问令牌请求不属于公共配置文件的字段
第一个要点表示必须使用用户访问令牌