Facebook Graph API 返回具有多个评论/喜欢但创建时间和时间相同的帖子更新时间
我正在使用 Graph API 使用此类 URL 从 Facebook 页面检索帖子 https://graph.facebook.com/[PageId]/posts?access_token=[access token]
这会返回许多帖子,例如:
{
"data": [
{
...
"type": "link",
"created_time": "2011-10-21T15:24:19+0000",
"updated_time": "2011-10-21T15:24:19+0000",
"likes": {
"...
"count": 7
},
"comments": {
"count": 39
}
},
{
...
"type": "status",
"created_time": "2011-10-18T15:31:22+0000",
"updated_time": "2011-10-18T15:31:22+0000",
"likes": {
...
"count": 15
},
"comments": {
"count": 67
}
},
...
],
...
}
对于返回的每个帖子,created_time 和 Updated_time 彼此相同,即使该帖子附有一些评论和点赞!这是一个错误吗?帖子的 Updated_time 不应该显示帖子附加的最后评论/点赞/等的时间吗?
谢谢。
I am using Graph API to retrieve posts from a Facebook Page using this type of URL
https://graph.facebook.com/[PageId]/posts?access_token=[access token]
This returns a number of posts such as:
{
"data": [
{
...
"type": "link",
"created_time": "2011-10-21T15:24:19+0000",
"updated_time": "2011-10-21T15:24:19+0000",
"likes": {
"...
"count": 7
},
"comments": {
"count": 39
}
},
{
...
"type": "status",
"created_time": "2011-10-18T15:31:22+0000",
"updated_time": "2011-10-18T15:31:22+0000",
"likes": {
...
"count": 15
},
"comments": {
"count": 67
}
},
...
],
...
}
For every post that is returned the created_time and updated_time are identical to each other even if the post has several comments and likes attached to it! Is this a bug? Shouldn’t the updated_time of a post show the time of last comment/like/etc attached to the post?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,经过更多搜索后,我发现这是一个错误,但只有当帖子超过 30 条评论时才会出现!
请参阅此处:当帖子获得超过 30 条评论时,更新时间将重置为created_time
Ok, after some more search I found out that this is a bug but only occurs if a post has more than 30 comments!
Please see here: updated time gets reset to created_time when a post gets more than 30 comments
同样奇怪的是,如果您有一个包含过去创建的未来事件的页面提要,则创建和更新的时间是未来的,就像事件日期一样......
Also weird that if you have a page-feed with events in the future which were created in the past, the created and updated times are in the future, like the event dates....