首页 > 解决方案 > Facebook:获取公共页面的活动信息

问题描述

我的 Facebook 页面发布公共事件,我正在开发一个使用此页面的应用程序。我想在给定其 Facebook id 的情况下获取对特定活动感兴趣/参加的人数。

我,应用程序的创建者,也是页面的管理员。但是,使用我使用应用程序 ID 和应用程序密钥生成的应用程序访问令牌,我无法调用事件 API:https://graph.facebook.com/v3.0/137340177139954?access_token={access_token}

我收到以下错误

{
    "error": {
        "message": "Unsupported get request. Object with ID '137340177139954' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
        "type": "GraphMethodException",
        "code": 100,
        "error_subcode": 33,
        "fbtrace_id": "FqJ5oAqdukA"
    }
}

我究竟做错了什么?如何获取有关我拥有的页面的事件信息

标签: facebookfacebook-graph-api

解决方案


您击中的端点不正确。您忘记/eventspage_id.

这应该是这样的:

https://graph.facebook.com/v3.0/137340177139954/events?access_token={access_token}


推荐阅读