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

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

问题描述

使用最新版本(2.12)的Facebook API,我试图使用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"或"name"上时,它显示字段为空或访问令牌不允许使用".

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.

在禁止"方面,我检查了API参考,并在

On the "disallowed" side I've checked the API reference and on https://developers.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!

推荐答案

访问当前,除非您使用用户访问令牌并且该用户已被邀请参加该页面的任何事件或对该页面的任何事件感兴趣/感兴趣,否则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天全站免登陆