(OAuthException - #2500) An active access token must be used to query information about the current user

空扰寡人 提交于 2019-11-28 00:25:46

you are getting access token for the APPLICATION, not for a user. Therefore, "me" does not make sense. You should supply ID there - either your user ID, or your app ID, or any other ID your app has permissions for.

both calls worked for with your example:

dynamic me = client.Get("1000<<MY_USER_ID>>5735");

dynamic theApp = client.Get("201193246663533");
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!