Google+ APIで特定の記事についたコメント一覧を取得する
が、何件コメントが有っても2件しかコメントを返さなくなっています。上記の関数を使って
WEBページにG+コメントを表示するデモページでもコメントが17件本来あるのに2件しか表示されなくなったいます。
このG+記事にはコメントが17件付いていますけど、HTTP APIを用いてコメントを取得しようとすると下記のように2件しか取得できません。
この件は
Google+ Developer Forumでも話題になっています。
$ wget -t 1 -S -O - https://www.googleapis.com/plus/v1/activities/z125jb5yhq3dyfwe5224exwiqruvtda0i/comments?key=AIzaSyA5ti-m7T8gFzR5uuMR6EJB7KygMaDr0hk
--2013-06-05 20:08:29-- https://www.googleapis.com/plus/v1/activities/z125jb5yhq3dyfwe5224exwiqruvtda0i/comments?key=AIzaSyA5ti-m7T8gFzR5uuMR6EJB7KygMaDr0hk
www.googleapis.com (www.googleapis.com) をDNSに問いあわせています... 74.125.31.95
www.googleapis.com (www.googleapis.com)|74.125.31.95|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています...
HTTP/1.1 200 OK
Expires: Wed, 05 Jun 2013 11:08:30 GMT
Date: Wed, 05 Jun 2013 11:08:30 GMT
Cache-Control: private, max-age=0, must-revalidate, no-transform
ETag: "egWOTnJQshDUW7mcQ5TTH5LK5kQ/scHVPJwUGGN-8wgFh93QhFozvKc"
Content-Type: application/json; charset=UTF-8
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked
長さ: 特定できません [application/json]
`STDOUT' に保存中
[<=> ] 0 --.-K/s {
"kind": "plus#commentFeed",
"etag": "\"egWOTnJQshDUW7mcQ5TTH5LK5kQ/scHVPJwUGGN-8wgFh93QhFozvKc\"",
"title": "Google+ List of Comments for an Activity",
"items": [
{
"kind": "plus#comment",
"etag": "\"egWOTnJQshDUW7mcQ5TTH5LK5kQ/mcBpYjFXrhKAFa8MJXGdw2j6DIo\"",
"verb": "post",
"id": "z125jb5yhq3dyfwe5224exwiqruvtda0i.1360594391049454",
"published": "2013-02-11T14:53:11.049Z",
"updated": "2013-02-11T14:53:11.049Z",
"actor": {
"id": "113706774556650311061",
"displayName": "Sancho Virág Attila",
"url": "https://plus.google.com/113706774556650311061",
"image": {
"url": "https://lh3.googleusercontent.com/-9AVmWRcEmwA/AAAAAAAAAAI/AAAAAAABgrM/zA_wxyVts7s/photo.jpg?sz=50"
}
},
"object": {
"objectType": "comment",
"content": "Sorry for a lot of comments, but I have a new problem. :)\u003cbr /\u003eAll page shows all posts which created for one only. What could be the problem?\u003cbr /\u003e\u003cbr /\u003eExample I shared this the test shared post which included comments: \u003ca href=\"http://goo.gl/mltze\" class=\"ot-anchor\" rel=\"nofollow\"\u003ehttp://goo.gl/mltze\u003c/a\u003e\u003cbr /\u003eBut the same G+ comments included on this page also: \u003ca href=\"http://goo.gl/BTNxV\" class=\"ot-anchor\" rel=\"nofollow\"\u003ehttp://goo.gl/BTNxV\u003c/a\u003e\u003cbr /\u003e\u003cbr /\u003e(tnx \u003cspan class=\"proflinkWrapper\"\u003e\u003cspan class=\"proflinkPrefix\"\u003e+\u003c/span\u003e\u003ca href=\"https://plus.google.com/113265892681003873244\" class=\"proflink\" oid=\"113265892681003873244\"\u003eMartin Matysiak\u003c/a\u003e\u003c/span\u003e)"
},
"selfLink": "https://www.googleapis.com/plus/v1/comments/z125jb5yhq3dyfwe5224exwiqruvtda0i#1360594391049454",
"inReplyTo": [
{
"id": "z125jb5yhq3dyfwe5224exwiqruvtda0i",
"url": "https://plus.google.com/102817283354809142195/posts/Ch1e36yt4aD"
}
],
"plusoners": {
"totalItems": 0
}
},
{
"kind": "plus#comment",
"etag": "\"egWOTnJQshDUW7mcQ5TTH5LK5kQ/8waRZoGwv8DlAa-CZPGS0-mydoQ\"",
"verb": "post",
"id": "z125jb5yhq3dyfwe5224exwiqruvtda0i.1360697414606157",
"published": "2013-02-12T19:30:14.606Z",
"updated": "2013-02-12T19:30:14.606Z",
"actor": {
"id": "102817283354809142195",
"displayName": "Jenny Murphy",
"url": "https://plus.google.com/102817283354809142195",
"image": {
"url": "https://lh4.googleusercontent.com/-yth5HLY4Qi4/AAAAAAAAAAI/AAAAAAAAPVs/fAq4PVOVBdc/photo.jpg?sz=50"
}
},
"object": {
"objectType": "comment",
"content": "\u003cspan class=\"proflinkWrapper\"\u003e\u003cspan class=\"proflinkPrefix\"\u003e+\u003c/span\u003e\u003ca href=\"https://plus.google.com/113706774556650311061\" class=\"proflink\" oid=\"113706774556650311061\"\u003eSancho Virág Attila\u003c/a\u003e\u003c/span\u003e They both contain the same ID on lines 68 and 131 respectively:\u003cbr /\u003e\u003cbr /\u003e <div class="g-comments-for z12ewluort3ygpsqo04cgrmi1y2rvrqgwlk0k"></div>\u003cbr /\u003e\u003cbr /\u003ez12ewluort3ygpsqo04cgrmi1y2rvrqgwlk0k is the value that controls where the JavaScript will pull the comment from."
},
"selfLink": "https://www.googleapis.com/plus/v1/comments/z125jb5yhq3dyfwe5224exwiqruvtda0i#1360697414606157",
"inReplyTo": [
{
"id": "z125jb5yhq3dyfwe5224exwiqruvtda0i",
"url": "https://plus.google.com/102817283354809142195/posts/Ch1e36yt4aD"
}
],
"plusoners": {
"totalItems": 0
}
}
]
}
[ <=> ] 3,532 --.-K/s 時間 0.001s
2013-06-05 20:08:30 (5.12 MB/s) - stdout へ出力しました [3532]