如何使用java查询Facebook事件

问题描述 投票:0回答:1

我正在寻找一种简单的方法来使用 Java 接口查询 Facebook 中创建的事件。

例如

Fetch me all events happening in San Jose, CA during the course of 1 week from now

例如

Fetch me all events categorized by music around San Jose, CA within a span of 5 miles radius

例如

Fetch me all events happening in San Jose, CA sorted by number of participants
- 有兴趣了解有大量用户参与的活动。

我还发现了以下 API 的参考资料,但不确定使用哪一个。与 facebook-java-api 相比,RestFB 似乎有更多流量。

http://restfb.com/javadoc/com/restfb/types/Event.html
http://code.google.com/p/facebook-java-api/
java facebook facebook-graph-api
1个回答
2
投票

您使用 Facebook Graph API

他们提供了一个类似 REST 的接口来访问 facebook。

© www.soinside.com 2019 - 2024. All rights reserved.