Can we comment an issue (repo public app not installed) on behalf of a user? oauth token not working

This page talks about user to server and list the create comment as an option. But when I try it I got

message: “Resource not accessible by integration”

If the repo installed the app, then it works. I guess it won’t work if the repo did not install the app.