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

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

问题描述

我试图使用最近发布的新的Graph API Facebook,但我似乎无法使其正常工作。



我已经经历步骤,在/授权通话后,我收到一个access_token:

  access_token = 109002049121898 | nhKwSTJVPbUZ5JYyIH3opCBQMf8。 

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

  {
error:{
type:QueryParseException,
message:活动访问令牌必须用于查询有关当前用户的信息。
}
}

我也被困住为...为了...



-AC

解决方案

我遵循本比顿顿的博客获取访问令牌。尝试使用同样的错误。 Facebook的OAuth实现不完全遵循规范,只要文档清楚,我很好,这显然不是这样。 Aslo,如果用访问令牌返回用户名和用户名,那将是很好的。


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

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

解决方案

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天全站免登陆