Harris
Harris

Reputation: 1138

CakePHP and posting to certain twitter account

I used cake php with twitter datasource to post some info on a certain twitter account. Twitter changed the authentication method towards oauth.

I can't find an example of a cakephp app, where a certain message is posted in a certain twitter account. For example when publishing an article in the site, I want site's twitter account to get updated.

I have read some examples but in these the user accessing the page gets redirected to twitter to be authenticated and to publish something on his/hers account, which is not want I want.

Anybody has an example on that?

thanks a lot.

Upvotes: 0

Views: 815

Answers (2)

dhofstet
dhofstet

Reputation: 9964

Have a look at Using one access token with OAuth in the Twitter documentation, it describes a single-user use case and avoids the redirect.

Upvotes: 1

Mika
Mika

Reputation: 1539

Hm, I do not know if this helps you, but do you read the article from neil crook? cakephp-oauth-extension-to-httpsocket

I think for the first time the user get redirected to twitter to authorize the application... After that you save ‘oauth_token’ and ‘oauth_token_secret’ for further access to the Twitter Api...

But i must say that i have not tried it yet...

Maybe the tipp from David Yell in this question thread LINK helps

Upvotes: 0

Related Questions