How do I get the Facebook Server Time?

别等时光非礼了梦想. 提交于 2019-12-06 13:22:19

You can call now() in a Facebook FQL query to get the current Facebook server time in a unix timestamp and then convert it from there however you need.

For example, here is a sample FQL query that would work without an auth token (fql statements require a where clause so I just grabbed a random fql table with a random where statement):

SELECT now() FROM link_stat WHERE url = '1.2'

The url for that query would be: https://api.facebook.com/method/fql.query?query=SELECT+now%28%29+FROM+link_stat+WHERE+url+%3D+%271.2%27&format=json

Facebook provides a FQL testing tool to help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!