I have this code:
public void FbShare(JSONObject parameters) {
if (Session.getActiveSession() == null || !Session.getActiveSession().isOpened()) {
Session.StatusCallback callback = new Session.StatusCallback() {
@Override
public void call(Session session, SessionState state, Exception exception) {
if (state.isOpened()) {
publishFeedDialog(parameters); // <--- HERE
}
}
};
Session.openActiveSession(this, true, callback);
} else {
publishFeedDialog(parameters);
}
}
Why is parameters
not accessible in the publishFeedDialog(parameters)
call?