How do I post to a private Facebook group from my web application

I have this web application and we want to post certain events to a closed Facebook group from this web application automatically by calling an API than manually click of 'Share' button, how could we do that?