facebook - 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"
}
}
我究竟做错了什么?如何获取有关我拥有的页面的事件信息
解决方案
您击中的端点不正确。您忘记/events
了page_id
.
这应该是这样的:
https://graph.facebook.com/v3.0/137340177139954/events?access_token={access_token}
推荐阅读
- bluetooth - Raspberry Pi 无法重新连接到配对的蓝牙设备
- python - 如何使这个序列化程序(python django)将帖子下的评论转换为 Json 数据
- java - 类文件存在于引用的库中,但 eclipse maven 在构建时无法识别它
- python - 如何在 discord.py 中创建垃圾邮件命令
- c# - JsonConvert 反序列化对象内存不足异常
- python - 无法将文件作为模块加载
- powershell - 我需要我的脚本在 -Whatif 输出中包含“LastWriteTime”属性
- selenium - findElements 调用返回的 chromedriver 错误“未找到陈旧的元素”
- c# - C# ASP.NET MVC 显示属性(通过 Resources.resx 提示)文件
- azure - 是否可以在 Azure 警报中显示 KQL 查询结果?