facebook 图形 api: /me OAuthException (c#)
var json = new WebClient().DownloadString("https://graph.facebook.com/me?access_token=" + app.AccessToken);
当我从图形 api 获取其他内容时,我的 accesstoken 起作用。但是,当我尝试获取有关当前用户的信息时,我收到错误消息:
{
"error": {
"type": "OAuthException",
"message": "An active access token must be used to query information about the current user."
}
}
用户已连接到页面上的我的应用程序。我错过了什么吗?我所需要的只是他的用户ID。谢谢
var json = new WebClient().DownloadString("https://graph.facebook.com/me?access_token=" + app.AccessToken);
My accesstoken works when im fetching other stuff from the graph api. But when i try to get info about the current user i get the errormessage:
{
"error": {
"type": "OAuthException",
"message": "An active access token must be used to query information about the current user."
}
}
The user has connected to my app on the page. Did i miss something? All i need is his userID. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
访问令牌过期。您需要确保您拥有的访问令牌有效。请参阅https://developers.facebook.com/blog/post/500。
access token expire. you need to ensure that the access token you have is valid. see the https://developers.facebook.com/blog/post/500.