“请求该资源需要用户访问令牌”尝试让用户在 Facebook 签到时
我有一个 Facebook 应用程序,并且当我的用户单击 Facebook Connect 按钮时请求 user_checkin 权限。到目前为止一切顺利。
然而,当我获得新的应用程序访问令牌并尝试发出 FQL 以使用户签入时,我收到错误“请求此资源需要用户访问令牌”。
我想要实现的是每隔几分钟获取用户签到,并根据坐标信息向他们发送一封包含附近兴趣点的电子邮件。
有什么想法吗?
I have a Facebook app, and have asked for user_checkin permission when my users click on Facebook Connect button. All well so far.
When I get a new application access token, and try to issue an FQL in order to get the users checkins however, I get the error "A user access token is required to request this resource".
What I am trying to achieve is fetch users checkins every few minutes, and from the coords information send them an email with nearby points of interest.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
“当我获得新的应用程序访问令牌时”,
对于该操作,您将需要使用用户访问令牌。您也可以考虑请求离线访问权限。
"When I get a new application access token,"
For that action, you will need to use the user access token. You may also consider asking for offline_access permission too.
user_checkins 似乎不再起作用。它似乎已经被纳入 user_status 中,而 Facebook 还没有告诉我们。在图形 API 资源管理器上进行了 15 分钟的反复试验才弄清楚了这一点。
user_checkins no longer seems to work. It appears to have been rolled into user_status, and Facebook haven't told us. Took 15 minutes of trial and error on the graph API explorer to figure that one out.