0

我帮助了一个朋友与场地列出FB上的所有事件与位置,门票URI,时间网站,名单的Facebook页面事件使用FQL或图形API

场地等我已经找到了很多关于如何获取数据的信息,但是我不清楚如何在没有登录到FB的情况下获取公共事件。

我需要什么类型的令牌才能让网站简单地提取事件数据并将其显示给访问者?

基本上,我试图做的是显示一系列即将发生的事件,并假设该网站的访问者未登录到FB。

在此页面,https://developers.facebook.com/docs/reference/fql/event,就这样说:

权限

要阅读你所需要的事件表:

a generic access_token for public events (those whose privacy is set to OPEN) 

a user access_token with user_events permission for a user who can see the event for non-public events 

an app access_token with user_events permission (for non-public events, must be the app that created the event) 

a page access_token with user_events permission (for non-public events, must be the page that created the event) 

我不希望得到的代码帮助真的,我只是无法弄清楚access/auth过程如何工作。

看来FQL可能是最好的选择,所以我可以根据日期范围进行查询,但唉,我卡在access/auth/token部分。

我需要在第三方网站上列出Page的事件吗?

如果有人有任何意见,我将不胜感激。谢谢。

回答

0

我想通了。

这个问题帮助,但不正确的,有在回答中有语法错误: Get Facebook events from public fan page

从我发现,你需要成为一个FB开发商,创建一个应用程序,获得一个ID和秘密。

使用SDK(PHP在我的情况),而这个问题又不得不返回列表的一个很好的例子,我想: Link from ticket_uri is opening a blank page

我有但如果票证链接获得空白页的相同问题用户没有登录到FB。

但我的原始问题已解决。

1

只是为了向其他人解释,您无法通过图搜索获取城市中的所有事件。您需要通过用户详细信息或其他指标来优化它。

相关问题