如何获取 Facebook 页面的事件? [英] How can I get the events for a Facebook page?

查看:32
本文介绍了如何获取 Facebook 页面的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Facebook API 的最新版本 (2.12),我正在尝试使用 Graph API Explorer 获取页面的(公共)事件.

Using the latest version (2.12) of the Facebook API I'm trying to get (public) events for a page, using the Graph API Explorer.

但是,我似乎无法让它工作:

However, I can't seem to get it working:

当我将鼠标悬停在灰色的id"上时或姓名"在左侧,它显示字段为空或访问令牌不允许".

When I hover over the greyed out "id" or "name" on the left, it says "Field is empty or disallowed by the access token".

现在我在这里用作示例的页面是 Techcrunch,并且他们有很多活动即将到来.如此空"似乎不是问题.

Now the page I'm using as an exmple here is Techcrunch, and they have plenty of events coming up. So "empty" doesn't seem to be the issue.

关于不允许"我在 https://developers 上检查了 API 参考.facebook.com/docs/graph-api/reference/page/events/.

但是,我在这里似乎也找不到任何问题.它说阅读页面事件需要有效的页面访问令牌或具有基本权限的用户访问令牌.".

However, I can't seem to find any issue here either. It says "Reading Page events requires a valid Page access token or User access token with basic permissions.".

我在这里错过了什么?非常感谢任何提示!

What am I missing here? Any hints are greatly appreciated!

推荐答案

访问 https://developers.facebook.com/docs/graph-api/changelog/break-changes#pages-4-4

目前 Facebook 不会为使用 Pages API 的页面返回事件,除非您使用用户访问令牌并且该用户已被邀请参加页面的任何事件或正在参加/对页面的任何事件感兴趣.

Currently Facebook is not returning events for pages using Pages API unless you use an user accesss token and that user has been invited to any of the events of the page or is attending/interested in any of the events of the page.

这篇关于如何获取 Facebook 页面的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆