从Facebook API获取页面创建日期

时间:2018-01-31 17:10:56

标签: javascript python facebook facebook-graph-api

我已经成功地在Python和JavaScript中从Facebook API获取页面列表,提取数据等等,但奇怪的是我陷入了一些似乎应该简单的事情!

我找到了the documentation for retrieving a page's creation date through the Facebook API

但是,我已经尝试了各种方法来使这个工作,我一直在收到错误。

在他们的graph explorer中,我尝试了

{page-id}?fields=date
{page-id}?fields=day
{page-id}?fields=month, day, year
{page-id}?fields={fieldname_of_type_PageStartInfo}
{app-id}?fields=date
{app-id}?fields=day
{app-id}?fields=month, day, year
{app-id}?fields={fieldname_of_type_PageStartInfo}
...?fields=date
...?fields=day
...?fields=month, day, year
...?fields={fieldname_of_type_PageStartInfo}

我将{app-id}替换为我的应用程序ID,{page-id}替换为我希望开始日期的页面ID。在哪里说“......”我真的留在了“......”。在哪里说{fieldname_of_type_PageStartInfo}我确实把它放进去了,包括括号(我知道这可能是错的,但却变得绝望并且尝试了一切!)

所有这些组合都返回了各种错误,包括:

     "message": "(#100) Tried accessing nonexisting field (day) on node type (Application)",
    "message": "(#803) Some of the aliases you requested do not exist: ...",
"message": "(#100) Tried accessing nonexisting field (day) on node type (Page)",

我更喜欢JavaScript,Python中的解决方案,或者只是可能的图形API资源管理器中的URL。谢谢!

0 个答案:

没有答案
相关问题