I'm trying to publish some content in a company page on Linkedin using api v2. Reading the docs I've found two ways to share content, using ugcPosts and shares API. I successfuly shared content on a USER page using the ugcPosts. But, I cannot share a content in a COMPANY page using the ugcPosts. It looks like that using shares API I can share content in a company page. But the same documentation says that SharesAPI will be deprecated soon.
I have two questions. First, there is a way to post content to a company page using ugcPosts? If not, it is safe to use the shares API since it will deprecated soon?