Facebook Graph API已将其日期字符串格式更改为6位数年份格式?无法解析日期

时间:2016-09-22 02:19:43

标签: javascript facebook datetime facebook-graph-api datetime-format

我有一个使用Facebook Graph API的应用程序向Facebook组提要发送GET请求,如GET/v2.7/142679255268/feed。 GET请求正在接收一个奇怪的日期字符串,其中包含年份应为的6位数字。这就是奇怪的日期时间格式:

// Weird date string format corresponds to September 14 at 6:22pm
updated_time: 469164-06-03T19:09:24+0000 

以前返回的日期格式是:

// Previous date string format corresponds as expected to May 14th 
updated_time: 2016-05-14T03:54:42+0000

这不仅仅是我的应用程序获得这种奇怪的日期字符串格式。查看/ group / feed的官方Graph API Explorer,并返回same result

https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=142679255268%2Ffeed&version=v2.7

任何人都知道wtf是这种日期字符串格式格式以及如何将其转换为ISO8601?谢谢!

// ============================================= =========================

或者,是否有人知道如何在我的查询中指定要检索的帖子字段?我希望得到来自群组馈送的每个帖子的updated_time字段,而不是created_at

// The standard GET
GET/v2.7/142679255268/feed
// GET with limit of 10 posts
GET/v2.7/142679255268/feed?limit=10

// Now how to specify desired attributes of the fb posts coming from the feed?

0 个答案:

没有答案