获取Facebook页面拥有的事件列表 [英] Get a list of events owned by a facebook page

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

问题描述

有人知道我如何获得Facebook页面拥有(创建)的事件的列表吗?

Does anyone know how I can get a list of events owned (created) by a Facebook page?

我似乎能够使用图形api"生成实体正在参加的事件的列表.我还研究了FQL,但似乎要求'where'子句是可索引字段(自然,id是唯一可索引字段).

I seem to be able to use the "graph api" to generate a list of the events an entity is attending. I also looked at FQL, but it seems to require that the 'where' clause is an indexable field (and, naturally, the id is the only indexable field).

对于奖励积分,我们无需任何身份验证即可执行此操作. (尽管我对我可能至少需要一个永久的access_token感到不满意.)

For bonus points, we'd be able to do this without any authentication. (Though I'm resigned to the fact that I'm likely going to need at least a permanent access_token.)

如果有人知道该怎么做,我将永远感激不已.

If anyone knows how to do this I'd be eternally grateful.

推荐答案

所有FQL数据访问都需要身份验证,因此请忽略那些加分点".

All FQL data access requires authentication, so forget about those "bonus points".

这将需要一些后查询处理,如您所说,FQL WHERE子句仅涉及可索引字段,而owner.id字段则不可索引.因此,我们首先要确定用户是其成员"的事件并为这些事件加载所有者信息.

This is going to require some post-query handling as, like you said, the FQL WHERE clause only respects indexible fields and the owner.id field is not indexible. Thus, we first begin by identifying events the user is a "member" of and loading the owner information for those events.

SELECT id, name, owner.id FROM event WHERE id IN (SELECT eid FROM event_member WHERE uid = XXX)

查询返回数据集后,我们必须手动检查owner.id等于uid的行.

Once the query returns a dataset, we must manually check for rows in which owner.id is equal to uid.

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

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