Facebook FQL 或图形 API 事件

发布于 2024-12-28 13:29:02 字数 200 浏览 1 评论 0原文

我正在尝试开发一个应用程序,它将获取所有 Facebook 事件并将其显示在 iPhone 应用程序上。

我的问题是用 PHP 检索所有公共 facebook 事件的最佳方法是什么。我知道有 FQL 和开放图 api,但使用 FQL 我无法检索所有公共事件,而且我似乎找不到方法来执行此操作。

有人可以帮我解决这个问题吗?

亲切的问候 !

I'm trying to develop an application wich will get all the facebook events and show it on a iphone application.

My question is what is the best way to retrieve all the public facebook events in PHP. I know there is the FQL and the open graph api but with FQL I cannot retrieve just all the public events and I can't seem to find a way to do this.

Can somebody help me with this ?

Kind regards !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏大泽ㄣ 2025-01-04 13:29:02

FQL 和 Graph Api 都运行良好。两者都是不错的选择。

FQL

  • 如果您想获取所有用户的所有事件,FQL 可能会更快
    朋友们。
  • FQL 有一种方法可以获取与会者的数量,也许,
    不出席,直接“无回复”,无需统计
    与 20,000 人打交道时节省大量时间
    音乐会等 [如果你想计算性别比例,
    不幸的是,这个功能不会对您有太大帮助]
  • FQL 有一种方法可以确定谁被谁邀请,称为“event_member”表中的“inviter”,尽管它目前似乎已损坏: 查找谁邀请了您 :: Facebook FQL Explorer Bug: "Inviter":null
  • 如果您使用 FQL,您可以使用“隐私”来确定该事件是否是 民众。
  • SELECT 名称、地点、位置、start_time FROM event WHERE eid in
    (从 event_member WHERE uid=me() 中选择 eid)

图表:
- 您曾经检查“隐私”以了解活动的隐私。它现在已经贬值了,我相信现在没关系,因为只有您有权访问的事件才会显示。

  • $JSON = $facebook->api('/'.$target.'/events?fields=名称,地点,位置,start_time,描述,图片.类型(大),attending.fields(性别)&since= '。时间());

提示:如果您的程序应显示某个特定区域的事件,则可以使用应用程序的身份验证,而不是让用户登录并批准您的应用程序(除非您对每个用户进行了特殊自定义)。

Both FQL and the Graph Api work well. Both are great options.

FQL:

  • FQL may be faster if you want to get all the events from all a user's
    friends.
  • FQL has a method of getting the count of attendees, maybes,
    not attendings, and "no replies" directly, without having to count
    yourself, which saves LOTS of time when dealing with 20,000 people
    concerts etc. [ IF you want to calculate the gender ratios,
    unfortunately then this feature wont help you much ]
  • FQL has a method of determining who was invited by whom, called "inviter" from the "event_member" table, though it appears to be presently broken: Finding who INVITED you :: Facebook FQL Explorer Bug: "Inviter":null
  • If you are using FQL, you can use "privacy" to determine if the event is public.
  • SELECT name, venue, location, start_time FROM event WHERE eid in
    (SELECT eid FROM event_member WHERE uid=me())

The Graph:
- You used to check "privacy" for the privacy of an event. It is now depreciated and I believe it doesn't matter now, because only the events you have access to will show up.

  • $JSON = $facebook->api('/'.$target.'/events?fields=name,venue,location,start_time,description,picture.type(large),attending.fields(gender)&since='.time());

TIP: IF your program should show events for one specific region, can use an app's authentication rather than nag a user to log in and approve your app ( unless you have special customizations for each user).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文