【发布时间】:2012-04-19 06:30:25
【问题描述】:
我无法使用我的应用访问令牌获取我的测试用户列表。首先,我通过以下图形 api 调用获取应用访问令牌:
https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=client_credentials
成功了,我得到一个格式为
的访问令牌 APP_ID|SomeRandomCharacters
现在我尝试使用以下图形 API 调用获取我的测试用户列表:
https://graph.facebook.com/APP_ID/accounts/test-users?access_token=APP_ACCESS_TOKEN
但是,我的 iOS 代码中出现“错误 URL”错误。
如果我尝试直接在浏览器中访问该地址,我会收到 HTTP 400 Bad Request,如果我在 Graph API Explorer 中尝试,我会收到
{ "error":
{ "message": "An access token is required to request this resource.",
"type": "OAuthException",
"code": 104
}
}
【问题讨论】:
标签: facebook access-token