Reputation: 109
I seem to get this error msg when I try to use the postStatusMessage() from Facebook4J.
message - (#200) Requires either publish_to_groups permission and app being installed in the group, or manage_pages and publish_pages as an admin with sufficient administrative permission
My code:
Facebook facebook = new FacebookFactory().getInstance();
AccessToken at = new AccessToken("");
// Set access token.
facebook.setOAuthAppId("", "");
facebook.setOAuthAccessToken(at);
facebook.setOAuthPermissions("publish_to_groups, manage_pages, publish_pages");
try {
facebook.postStatusMessage("was geht");
} catch (FacebookException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
I got the accesstoken from https://developers.facebook.com/tools/accesstoken/ and the OAuthAppId also from developers.facebook.
I am not sure if the java library is outdated/ or how can I be an admin with sufficient rights? Or is there any other easy to use java library out there where you can post to your feed? Any help appreciated :x
Upvotes: 0
Views: 123