我从以下网址下载了最新的 jar 文件:http: //facebook4j.github.io/en/index.html
这是我的代码:
Facebook fb = new FacebookFactory().getInstance();
fb.setOAuthAppId("ID", "Pass");
fb.setOAuthAccessToken(new AccessToken(accesstoken)); // I get from https://developers.facebook.com/tools/explorer
fb.postStatusMessage("tester post");
当我尝试发布状态时出现异常:
SEVERE: null
message - (#200) Requires either publish_actions permission, or manage_pages and publish_pages as an admin with sufficient administrative permission
code - 200
Relevant information for error recovery can be found on the Facebook Developers Document: