Facebook Graph explorer:未知的路径组件

时间:2016-11-17 13:44:03

标签: facebook facebook-graph-api

我是Facebook Graph Api的新手 所以我决定从探险家开始

我获得了带照片权限的访问令牌

我先插入此网址:

me/albums

我得到了这个结果:

{
"data": [
{
  "created_time": "2010-09-05T12:04:01+0000",
  "name": "Profile Pictures",
  "id": "1587403170821"
},
{
  "created_time": "2015-10-09T14:24:32+0000",
  "name": "Mobile Uploads",
  "id": "10207728693601171"
},
{
  "created_time": "2015-09-30T13:00:27+0000",
  "name": "Cover Photos",
  "id": "10207681207694053"
},
{
  "created_time": "2008-08-28T15:16:46+0000",
  "name": "כללי",
  "id": "1020707883793"
},
{
  "created_time": "2008-08-26T16:26:25+0000",
  "name": "דן",
  "id": "1019996386006"
},
{
  "created_time": "2008-08-06T13:36:47+0000",
  "name": "Army",
  "id": "1009862332661"
}
],
"paging": {
"cursors": {
  "before": "MTU4NzQwMzE3MDgyMQZDZD",
  "after": "MTAwOTg2MjMzMjY2MQZDZD"
}
}
} 

所以我尝试在某张专辑中拍摄照片,所以我确实喜欢在Facebook Api reference, about how to get photos中描述:

v2.2/1587403170821/photos

但是我收到了这个错误:

{
"error": {
"message": "Unknown path components: /1587403170821/photos",
"type": "OAuthException",
"code": 2500,
"fbtrace_id": "AMeqGuPpuiE"
}
}

我进行了搜索,我找到了这个(OAuthException 2500 (Unknown path components) when trying to register Achievement in Facebook)和这个(Error: "message": "Unknown path components: /photos&callback=" code: 2500")问题 但它并没有帮助我,因为他们在网址上犯了一个错误,因为他们取代了&相反?

那么问题是什么?

1 个答案:

答案 0 :(得分:2)

我想出来了

问题是我在“命令行”中提到了图形api版本

但我没注意到它已经存在了

感谢所有