I am creating a small FB client to copy albums and photos from a private group I manage for a sports club to another private group for the former member.
The idea being that while former member no longer need to see posts about planning of training schedules etc, they still would like to see the picture of their time in the club. So I do not have an official app that will be published, and now I can publish to a group because I need the publish_to_group right. But that requires me to have an officially published app. Does anybody know how I can get around this. Is there a way around this?
I am using the fbRest API on top to the Graph API I have everything working including the creation of an album, but I get an FacebookOAuthException error: Application does not have the capability to make this API call.
Below is the snippet of the code that is relevant. The album I am publishing to is inside a private group.
InputStream imageData;
try {
imageData = new FileInputStream(out);
GraphResponse publishPhotoresponse = fbClient.publish(newAlbumID, GraphResponse.class,
BinaryAttachment.with(fileName, imageData),
Parameter.with("message", "migrated by jurgen"));
if (publishPhotoresponse.isSuccess()) {
success = 1;
out.delete();
}
} catch (FileNotFoundException ex) {
Logger.getLogger(PonyClubScraper.class.getName()).log(Level.SEVERE, null, ex);
}
I am hoping to publish the photos. Instead of getting an error.