I'm trying out developing a game for facebook, and I'm trying a "Publish to Timeline" feature through the js-sdk. My codebase is java, using lib-gdx, and the problem is, I don't know how I can invoke my js function that show the "Publish to Timeline" prompt. What could be the right way of doing it? I've tried this one as described here, but doesn't work:
public static native void publishFeed(int score) /*-{
publishFeed(score);
}-*/