To post on behalf of a user, that user must complete an OAUTH flow for your app. See this nice answer: https://stackoverflow.com/a/77610637