通用Facebook用户访问用于公共事件搜索的令牌 [英] Generic Facebook User Access Token for public event search

查看:93
本文介绍了通用Facebook用户访问用于公共事件搜索的令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个具有某些类型的公开Facebook事件的可过滤列表的Javascript应用程序。事实是,FB Graph API要求您提供用户访问令牌,以便使用搜索公共事件。我真的不想让人们登录到Facebook以使用网站,特别是因为任何Facebook用户的凭据足以查询我想要查询的事件(即搜索是独立于任何用户凭据,我只需要他们因为fb api要求我有一个用户访问令牌。)

I'm trying to create a Javascript application that has a filterable listing of certain kinds of public Facebook events. The thing is, the FB Graph API requires that you provide a User Access token in order to use the search for public events. I really don't want to make people log in to facebook in order to use the website, especially because ANY facebook user's credentials are sufficient to query the events I want to query (ie the search is independent of any user credentials, I just need them because the fb api requires me to have a user access token.)

你有什么建议可以解决吗?我正在考虑安全地提供自己的凭据,只是使用它们来实现查询。事情是,我每分钟可能需要做大量的查询,所以这可能不是非常现实的。任何建议都是有帮助的。

Do y'all have any suggestions for a work around? I'm thinking about providing my own credentials securely, and just using them to make the actual queries. The thing is I would potentially need to be doing A LOT of queries per minute, so this might not be terribly realistic. Any suggestions would be helpful.

推荐答案

只需做这个服务器端而不是客户端。

Simply do this server-side not client-side.

您只需要一个应用程序令牌(无用户令牌)进行此搜索,但使用此客户端是一个坏主意,因为它会公开您的应用程序标记。

You just need an app token (no user token) to do this search, but using this client-side is a bad idea since it would expose your app token publicly.

这篇关于通用Facebook用户访问用于公共事件搜索的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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