No, at least using a generic OAuth stream (also called 3-legged).
You need to open a browser so that the user can provide your application with access to protected resources.
You can use the on-off OAuth change, but it is poorly documented and maintained.
source share