【发布时间】:2015-10-05 17:12:51
【问题描述】:
情况:我能够通过网络应用程序获得访问令牌,以及我的个人资料名称和个人资料 ID。我添加了此代码以在我的墙上发布消息:
@SuppressWarnings("deprecation")
FacebookClient fbClient = new DefaultFacebookClient(accessToken, MY_APP_SECRET);
FacebookType publishMessageResponse = fbClient.publish("me/feed", FacebookType.class,
Parameter.with("message", "RestFB test 123"));
com.restfb.exception.FacebookOAuthException:收到 OAuthException 类型的 Facebook 错误响应:OAuth 访问令牌无效。 (代码 190,子代码为空)
问题:我收到错误消息:
Received Facebook error response of type OAuthException: Invalid OAuth access token. (code 190, subcode null)
我的尝试:我正在使用 restFb1.13(最新版本)。我也尝试过使用较旧的 restFb1.7,但错误仍然存在。我在文档中找不到上述错误代码。不幸的是,在 StackOverflow 和其他网站上搜索并没有列出这个错误。
任何建议都会很有帮助。
【问题讨论】:
标签: facebook facebook-graph-api oauth facebook-oauth