Facebook access_token 无效? [英] Facebook access_token invalid?

查看:44
本文介绍了Facebook access_token 无效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Facebook 最近发布的新图形 API,但似乎无法正常工作.

I'm attempting to use the new Graph API Facebook recently released, but I can't seem to get it to work correctly.

我已经完成了这些步骤,在/authorize 调用之后,我收到了一个 access_token:

I've gone through the steps, and after the /authorize call, I receive an access_token:

access_token=109002049121898|nhKwSTJVPbUZ5JYyIH3opCBQMf8.

当我尝试使用该令牌时,我得到:

When I attempt to use that token I get:

{
   "error": {
      "type": "QueryParseException",
      "message": "An active access token must be used to query information about the current user."
   }
}

我也很困惑为什么...

I'm stumped as too why...

-AC

推荐答案

同样的事情.我关注了 Ben Biddington 的 博客获取访问令牌.尝试使用它时出现同样的错误.Facebook 的 OAuth 实现并没有完全遵循规范,只要文档清楚,我就可以接受,显然这里不是这种情况.同样,如果用户 ID 和用户名与访问令牌一起返回,那就太好了.

same thing here. I followed Ben Biddington's blog to get the access token. Same error when trying to use it. Facebook's OAuth implementation doesn't follow the spec completely, i am fine with it as long as the doc is clear, which obviously is not the case here. Aslo, it would be nice if the userid and username are returned with the access token.

这篇关于Facebook access_token 无效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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