按地点搜索 Facebook 活动

发布于 2024-11-18 16:11:16 字数 458 浏览 2 评论 0原文

我计划使用 FB API 来访问“事件”。例如,如果我选择斯里兰卡。该地点的所有活动。如果你们有幸的话请告诉我。我正在通过 FQL 浏览来完成此操作,但运气不佳。

这看起来确实很有帮助,我通过搜索找到了它,但找不到。让它按照我的需要工作。 https://graph.facebook .com/search?q=coffee&type=post&geo=id&lang=indonesia&location=indonesia

如果你们有的话请发给我 主意。

PS:最终结果是从 FB 获取事件并在博客上发布类似于 tumblr 的内容。

I am planning to use FB API to access "Events". For an example if I select Sri Lanka. All events by that location. If you guys had any luck with that let me know. I am browsing trough FQL to get this done didn't have much luck.

This does look like something helpful , i found it from a search , but couldn't. Get it to work as I need.
https://graph.facebook.com/search?q=coffee&type=post&geo=id&lang=indonesia&location=indonesia

Please post me up if you guys have any idea.

PS : Final outcome it to grab Events from FB and post on a blog something similar to tumblr.

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

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

发布评论

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

评论(2

淡淡绿茶香 2024-11-25 16:11:16

我没有在 Facebook 平台上做太多工作,但以下信息可能会对您有所帮助:

阅读开发人员文档 因为它将告诉您如何使用 API 方法以及它们的限制是什么

据我了解,您可以使用 https://graph.facebook.com/me/events?access_token=[a valid access token] 来获取当前用户已被邀请参加或主持的活动。重要的是要了解这些信息是基于每个用户的,每个用户都必须授权您的应用程序使用有关其订阅事件的信息。这意味着可能无法执行“获取斯里兰卡科伦坡发生的所有事件的列表”之类的操作。但是,您可以使用上述 api 方法从使用您的应用程序的用户收集数据。然后,您可以使用这些数据回顾性地创建一个显示所有公共事件信息的图表。

希望有帮助。

迪内什。

I haven't done much work on Facebook platform but the following information might help you:

Read the Developer Documentation as it will tell you how to use API methods and what are their limitations

From what I understand, you can use https://graph.facebook.com/me/events?access_token=[a valid access token] to get events that the current user has been invited to or hosting. It is important to understand that this information are per user basis and each user will have to authorize your application to use information about their subscribed events. This means that it may not be possible to do something like 'Get a list of all events taking place in Colombo, Sri Lanka'. However you could use the above mentioned api method to collect data from users who use your application. You can then use this data retrospectively create a graph showing all public events information.

Hope that helps.

Dinesh.

伴我心暖 2024-11-25 16:11:16

Facebook 不支持通过 API 按位置搜索事件。但是,您可以使用这样的图形搜索:https://graph.facebook.com/search?q=srilanka&type=event 这将搜索描述中包含“srilanka”的事件或名称或位置。这并不能保证事件来自斯里兰卡,但您可以根据 api 返回的“位置”字段过滤结果。

Facebook doesn't support searching for events by location from the API. However you can use the graph search like this: https://graph.facebook.com/search?q=srilanka&type=event this will search for events having "srilanka" in either the description or the name or as their location. This does not guarantee that the events are from sri lanka but you can filter out the results based on the "location" field returned by the api.

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