I've been trying to use the native sharebutton integrated into the Codename one project, except that when I click "Post", a "400 : Bad Request" error appears. No exception is thrown, and I have no stacktrace in my console.
Code :
ShareButton sb = new ShareButton();
sb.addActionListener((evt) -> {
System.out.println("clicked");
});
hi.add(sb);
sb.setImageToShare("file://home/230r3EdWRk4kP6WDiMBM", "image/jpg");
sb.setTextToShare("Test facebook");
hi.show();
Another inssue is that the text to share is invisible.