In this video you could see how to create and configure a Linkedin API application for posting in Linkedin Companies Pages. You need to request the Community Management API product and use these scopes
r_basicprofile, rw_organization_admin, r_organization_social and w_organization_social.