OAuth Twitter API: Post message , status 401 Unauthorized
First thing first check out the access level. If its read only, fix it read and wirte both.
If its already read and write then most probably you are doing post having read and write access but authorization is still of read only. Follow this link to revoke the access and reauthorize it again. https://twitter.com/settings/connections