Does anyone here have a complete setup for auth, twitter and twitter app to ensure ALL content will be pushed to twitter on saving?

Comments

erratik’s picture

Subscribing.

I can import tweets, add twitter accounts, I get the oauth authorization, but same thing -nothing is being posted to twitter upon save.

michaek’s picture

The 7.x version should not be expected to work, as noted in the module description. If you're interested in contributing to development, it would be much appreciated!

juampynr’s picture

Hi michaek, I am very keen on helping port to Drupal 7. Please read the latest 7.x issues in which I have given feedback and patches.

Cheers

sirclickalot’s picture

Component: Twitter Actions » Twitter API
Category: bug » support

Can anyone please confirm as to whether or not the current beta release of the Twitter module (7.x-3.0-beta1) SHOULD actually be posting to my Twitter account.

I'm sure I've got everything right in the set up and have tried un-installing , re-creating tokens etc. but I simply cannot get it to post to anything to Twitter on a node save.

I'm using OAthu 7.x-3.x-dev

Should I have Twitter Actions enabled - when I do I get a very nasty PDO Error and have to go into my database and disable the module manually then clear caches to get my site back on-line. ;-(

Thank you.

juampynr’s picture

SirClickALot:

* download twitter module 7.x-3.x.
* Twitter actions is not needed for posting to twitter.
* Replace you Oauth module for the latest dev release. There is a bug in the stable one related to canceling accounts.
* On your app settings at dev.twitter.com, check that you have enabled read and write access.
* Check that your twitter account is linked to your user at My account.
* Finally, make sure you have marked the content types from which you want to post to twitter.

Cheers

sirclickalot’s picture

Thanks @juampy,

I've checked an double checked ALL of the and patched the Twitter Post module with the patch from http://drupal.org/node/1307862 but still no Twitter action for me?

After applying the Twitter Post patch I at least get a confirmation message that my nodes are being 'posted successfully to Twitter' but they still ain't!

Can you suggest anything else?

OAuth : 7.x-3.x-dev (latest)
Twitter : 7.x-3.0-beta1
Twitter Post : 7.x-3.0-beta1 (patched for incorrect use of node_api() calls.

juampynr’s picture

Instead of patching, replace your twitter folder completely by the one at http://drupal.org/node/1187104 (remove twitter directory before extracting).

Plus, have you verified that you added your twitter account to your user? When doing it, was Twitter stating that your website would be able to post content for you?

Cheers

juampynr’s picture

Status: Active » Postponed (maintainer needs more info)

Updating status until there is more feedback from SirClickALot.

Errors related to posting to Twitter were fixed at #1307862: Fix twitter_post to work with drupal 7 node-api and #1307872: Fix the path of twitter_post.

The latest stable version has these fixes.

mshepherd’s picture

I have this all working nicely.

But I did initially have a problem. When I first created my app at dev.twitter.com, I connected a drupal site account to it while access level was set to read only. Obviously my site couldn't post to twitter. I changed access level of the app to Read/Write, but my site still couldn't post to my twitter account.

Only when I deleted the app on dev.twitter.com, recreated it and set access level to Read/Write before linking my drupal site account to it, did it finally work.

I wonder if this is normal twitter app behaviour or if the twitter/oauth modules aren't picking up this change in access level?

juampynr’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

mshepherd, I have reviewed what does twitter and oauth database tables store during an OAuth authentication and there is nothing related to which rights over a Twitter account there are. So I do not know what may have blocked you from posting.

As there is no more feedback from the issue creator I am closing this issue.

mshepherd’s picture

Sorry, I probably didn't explain myself properly. It was the twitter end of things was blocking me. I had the twitter app set to Read rather than Read/Write.

juampynr’s picture

Cool, glad that you sorted it out.

Cheers

m4xjb’s picture

After carefully following all advice I have managed to get this working. It appears the order in which you install/authorise/activate things is very important. For the sake of helping others, here are the necessary steps I took to achieve auto posting to Twitter:

On Drupal 7.9

1) Download and install Twitter module (activating only main module, not sub modules)
2) Create Twitter App
3) Change App permissions to Read & Write
4) Reset Application keys to obtain new consumer key & secret
5) Add Twitter account in Drupal User admin (/user/[user_number]/edit/twitter)
6) Run cron and check that twitter statuses are shown in user area (/user/[user_number]/tweets)
7) Download and install OAuth module
8) Add Twitter App Consumer key & secret to Drupal > Configuration > Web Services > Twitter
9) Activate Signin with Twitter submodule
10) Log out of Drupal and Sign back in using Twitter account (it works)
11) Activate Twitter Post & Twitter Actions sub modules
12) Choose content types to automatically post in Drupal > Configuration > Twitter > Post
13) Add new content
14) Check twitter - it works!!

NB: It is not necessary to sign in to the Drupal admin with your Twitter account to have posts automatically post to Twitter.