Facebook graph api Facebook签入,需要用户访问tokey

Facebook graph api Facebook签入,需要用户访问tokey,facebook-graph-api,facebook-checkins,Facebook Graph Api,Facebook Checkins,我能够通过url访问签入和位置,并在我的应用程序中使用Graph API Explorer 因此,用户令牌似乎还可以 现在,当我尝试: $ curl "https://graph.facebook.com/[my id]/locations?access_token=[my app token] 它说: {"error":{"message":"A user access token is required to request this resource.","type":"OAuthEx

我能够通过url访问签入和位置,并在我的应用程序中使用Graph API Explorer

因此,用户令牌似乎还可以

现在,当我尝试:

$ curl  "https://graph.facebook.com/[my id]/locations?access_token=[my app token]
它说:

{"error":{"message":"A user access token is required to request this resource.","type":"OAuthException","code":102}}
在Graph API资源管理器中,我为我的应用程序启用了每个权限。我试过签入和定位,但都不起作用。我可以看到基本信息、喜好、朋友等,但没有位置信息

应用程序设置 已启用 2012年8月突破性变化: 删除脱机访问权限:

禁用 流post URL安全性: 强制对auth.login使用登录密码: 2012年9月突破性变化: 2012年10月突破性变化:

我正在阅读所有关于这个的stackoverflow主题,我正在阅读文档,但我似乎遗漏了一些东西

知道我错过了什么吗

谢谢


Eric

好的,所以我不清楚用户令牌是如何发挥作用的,尽管还有其他帖子和User143803的评论

我可以从php sdk facebook api中获取用户令牌,通过60天确保其长期有效:

https://graph.facebook.com/oauth/access_token?client_id=[my app id]&client_secret=[my secret]&grant_type=fb_exchange_token&fb_exchange_token=[user token]
这将返回一个新的用户令牌

https://graph.facebook.com/[user id]/checkins?access_token=[new user token]
这将返回我期望的信息