I am using OAuth and OAuthConnector to post on behalf of the users on my site. On LinkedIn, users connect from their /user/%user/connections page for the first time to authorize my site. Then cron takes over to post for all of them to their own respective news feeds.
But LinkedIn access tokens expire in 60 days and I'd like to renew the access token using my cron code. In other words, my code should renew the tokens without the user accessing the site and manually run through the authorization process again.

Is this currently possible or can it be set up as part of the oauthconnector or oauth cron process or can a function be created to handle this?

Comments

phkemper’s picture

I'd like to know how to do this as well.

phkemper’s picture

I've come to the conclusion that this is not possible. A user must actually log into your site and renew the connection manually. A bit stupid, but that's how it is.

ram4nd’s picture

Issue summary: View changes

I would like to see this implemented, without it the module should be in alpha or something.