我有一个包含一些文章的页面 facebook,我想得到它们,但是当我这样做时:
https://graph.facebook.com/v2.0/1432545087007695/notes?access_token=319440784873296|871VGrd1FxUDLTDeRMpfm0ndHxE
我有这个结果:
{
"error": {
"message": "(#12) notes API is deprecated for versions v2.0 and higher",
"type": "OAuthException",
"code": 12
}
}
当我这样做时:
https://graph.facebook.com/v2.0/1432545087007695/feed?access_token=319440784873296|871VGrd1FxUDLTDeRMpfm0ndHxE
我收到有关该页面的所有信息:
{
"data": [
{
"id": "1432545087007695_1433265710268966",
"from": {
"category": "Community",
"name": "Bonjour",
"id": "1432545087007695"
},
"picture": "https://scontent-a.xx.fbcdn.net/hphotos-xpa1/t1.0-9/s130x130/1521536_1433265766935627_9164966378403324602_n.jpg",
"link": "https://www.facebook.com/notes/bonjour/hello/1433265710268966",
"name": "hello",
"description": "deprecateddeprecateddeprecateddeprecateddeprecateddeprecateddeprecateddeprecateddeprecateddeprecated\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yY/r/1gBp2bDGEuh.gif",
"privacy": {
"value": ""
},
"type": "link",
"status_type": "created_note",
"application": {
"name": "Notes",
"id": "2347471856"
},
"created_time": "2014-06-11T11:20:52+0000",
"updated_time": "2014-06-11T11:20:52+0000"
},
{
"id": "1432545087007695_1433263763602494",
"from": {
"category": "Community",
"name": "Bonjour",
"id": "1432545087007695"
},
"picture": "https://fbcdn-photos-h-a.akamaihd.net/hphotos-ak-xpf1/t1.0-0/10325164_1433263880269149_978779895298362170_s.png",
"link": "https://www.facebook.com/notes/bonjour/62511111111111111111111/1433263763602494",
"name": "62511111111111111111111",
"description": "1222222222222222223649819641964194419541584158145141",
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yY/r/1gBp2bDGEuh.gif",
"privacy": {
"value": ""
},
"type": "link",
"status_type": "created_note",
"application": {
"name": "Notes",
"id": "2347471856"
},
"created_time": "2014-06-11T11:13:52+0000",
"updated_time": "2014-06-11T11:13:52+0000",
"likes": {
"data": [
{
"id": "1432487507014191",
"name": "Chaimae Orbit"
}
],
"paging": {
"cursors": {
"after": "MTQzMjQ4NzUwNzAxNDE5MQ==",
"before": "MTQzMjQ4NzUwNzAxNDE5MQ=="
}
}
}
},
{
"id": "1432545087007695_1433228996939304",
"from": {
"category": "Community",
"name": "Bonjour",
"id": "1432545087007695"
},
"picture": "https://fbcdn-photos-b-a.akamaihd.net/hphotos-ak-xpa1/t1.0-0/10390156_1433229026939301_5536116692037351754_s.png",
"link": "https://www.facebook.com/notes/bonjour/trytrytr/1433228996939304",
"name": "trytrytr",
"description": "ytryrtyrty\n",
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yY/r/1gBp2bDGEuh.gif",
"privacy": {
"value": ""
},
"type": "link",
"status_type": "created_note",
"application": {
"name": "Notes",
"id": "2347471856"
},
"created_time": "2014-06-11T09:26:25+0000",
"updated_time": "2014-06-11T09:26:25+0000"
},
{
"id": "1432545087007695_1433228876939316",
"from": {
"category": "Community",
"name": "Bonjour",
"id": "1432545087007695"
},
"message": "fjuuyktiy",
"privacy": {
"value": ""
},
"type": "status",
"status_type": "mobile_status_update",
"created_time": "2014-06-11T09:25:35+0000",
"updated_time": "2014-06-11T09:25:35+0000"
},
{
"id": "1432545087007695_1432929136969290",
"from": {
"category": "Community",
"name": "Bonjour",
"id": "1432545087007695"
},
"story": "Bonjour updated their cover photo.",
"story_tags": {
"0": [
{
"id": "1432545087007695",
"name": "Bonjour",
"offset": 0,
"length": 7,
"type": "page"
}
]
},
"picture": "https://fbcdn-photos-a-a.akamaihd.net/hphotos-ak-xfp1/t1.0-0/10303790_1432929123635958_3561739667982482211_s.png",
"link": "https://www.facebook.com/1432545087007695/photos/a.1432929133635957.1073741827.1432545087007695/1432929123635958/?type=1&relevant_count=1",
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yz/r/StEh3RhPvjk.gif",
"privacy": {
"value": ""
},
"type": "photo",
"object_id": "1432929123635958",
"created_time": "2014-06-10T08:22:51+0000",
"updated_time": "2014-06-10T08:22:51+0000"
},
{
"id": "1432545087007695_1432656033663267",
"from": {
"category": "Community",
"name": "Bonjour",
"id": "1432545087007695"
},
"message": "Nouvaut\u00e9",
"privacy": {
"value": ""
},
"type": "status",
"status_type": "mobile_status_update",
"created_time": "2014-06-09T08:49:14+0000",
"updated_time": "2014-06-09T08:49:14+0000"
},
{
"id": "1432545087007695_1432545103674360",
"from": {
"category": "Community",
"name": "Bonjour",
"id": "1432545087007695"
},
"story": "Bonjour joined Facebook.",
"story_tags": {
"0": [
{
"id": "1432545087007695",
"name": "Bonjour",
"offset": 0,
"length": 7,
"type": "page"
}
]
},
"privacy": {
"value": ""
},
"type": "status",
"application": {
"name": "Reviews",
"id": "6261817190"
},
"created_time": "2014-06-08T21:42:17+0000",
"updated_time": "2014-06-08T21:42:17+0000"
}
],
"paging": {
"previous": "https://graph.facebook.com/v2.0/1432545087007695/feed?access_token=319440784873296|871VGrd1FxUDLTDeRMpfm0ndHxE&limit=25&since=1402485652&__previous=1",
"next": "https://graph.facebook.com/v2.0/1432545087007695/feed?access_token=319440784873296|871VGrd1FxUDLTDeRMpfm0ndHxE&limit=25&until=1402263736"
}
}
证明我可以和我的页面通信,但是我怎么才能只得到笔记呢?