I've followed all steps in the installation guide, and was originally getting an "Invalid OAuth Request" error, which I fixed by applying this patch: http://drupal.org/node/1924478.
Now I can get my authenticated account to show up under admin/config/services/twitter, with the correct icon, name, and description. After checking "tweets" checkbox and saving changes, running cron does not import the latest Tweets, and the twitter table in the database remains empty. I've also tried adding various other unauthorized (and public) accounts, with the same result. The default view jumps to the "No Results Behavior" condition.
The error log also remains empty.
I have triple checked permissions with the Twitter application, and it has read/write permissions and all keys/secrets/urls appear to be correct. I haven't had success with any previous 7.x version of the module either.
Can anyone steer me in the right direction?
Thanks,
nickjvm
Comments
Comment #1
rdeknijf commentedConfirming this, same results, using 7.x-5.6 with described patch.
Comment #2
symphonia commentedSame problem...
Comment #3
sco_tt commentedSame here, although I have it working on a test site with 7.x-5.6 before the Invalid Oauth patch was necessary.
Comment #4
a_khalipau commentedI've create a patch for current 7.x-6.x-dev version. http://drupal.org/node/1973470#comment-7315126
Comment #5
nickjvm commentedThank you, @xopoc! Applying the patch fixed the issue!
Comment #6
juampynr commentedDuplicate of #1973470: Import and views handler bugs.
Comment #7
Joel MMCC commentedI’m still having the same symptoms with -alpha2, even though it was supposedly fixed by committing the patch in #1973470: Import and views handler bugs.. I checked that the Twitter account in question does indeed have lots of tweets, but none come in no matter how many times I run cron. Everything appears to be set up just fine as far as OAuth (oauth_common 7.x-3.1) Key and Secret, Read and Write permissions on the Twitter Application, Callback URL set therein as well, establishing an authenticated account and enabling Tweets (and Mentions) to be pulled from it, etc.
Comment #8
symphonia commentedHi,
I "solved" this problem - my tweets were not imported - installing Twitter pull module... I know it's not a solution for the Twitter module, but at least I can see my tweets...!
Comment #9
ippy commentedWe appeared to have the same issue but for 6.x-5.1, but got things moving again after deleting the config and re-adding the application.
Scenario
+++++++++
Twitter, oAuth and Autoload ( - req for 6) are installed.
The correct Twitter account name, icon, keys, etc all seem present (and no complaints from oAuth).
In the DB the details are present in the twitter_account table, but there are no tweets in the twitter table after running cron (and cron runs fine, with various jobs executed ok).
No error messages in the logs.
Basically everything looks fine and like it should work.
Hmm... mysterious...
What worked for us
++++++++++
Here's what we did to get it working again (2-5 probably did the trick)
1. Checked versions and dependencies all ok, then disabled and re-enabled all the relevant modules;
2. Created new oAuth key and secret on Twitter with r/w access;
3. Delete the existing Twitter configuration on the site;
4. Reset the "settings" to default, add the new key/secret;
5. Add the application again;
6. Run cron;
7. Bingo - Tweets!
Obviously this is a specific case and may not apply to others' situation, but as we had a similar issue I thought it would be good to share what had worked for us.
Note that this also looks like a similar issue to https://drupal.org/node/1987222
Comment #10
M. George Hansen commentedExperienced the same problem on 7.x-5.8. I was able to "fix" the problem by enabling the "Import and display Twitter statuses..." option in the twitter module settings. Of particular note is the fact that my Twitter app is in "read-only" mode and that I didn't need to enable "read/write" access (which would have been unnecessary for my purposes and a potential security issue).
Looking at the twitter_cron() hook in twitter.module it appears that the cron run is aborted if the "twitter_import" variable is set to FALSE, which would be the case for any user that has saved the module settings form with the "Import and display Twitter statuses..." option unchecked (which is the default). Here's the code snippet in question for clarity:
This same code appears to be in the 7.x-6.x branch as well.
Is this behavior intentional, i.e. should the "Import and display the Twitter statuses..." option prevent tweets from being imported from authorized Twitter apps? For my purposes I do not need or want to import user Tweets and Twitter statuses, so having an option to turn this off while still allowing the import of Tweets from authorized apps would be nice.
Comment #11
dgeo commentedSame problem here than #10: This option should read something like 'use cron'.
Authorization for users is managed via perms, isn't it ?
Comment #12
dgeo commentedbranch changed to 5.x-dev as it seems to be the right one for now – see #2205183: Clarify recommended download(s) for Twitter 7.x
Comment #13
vallab444 commentedActually, this is what I found:
If I make tweets private (protected) and then make them public once again, the 'private' status for the posting twitter handle linked to the app does not change back to NO (admin/config/services/twitter), but continues to remain YES. The only way was to delete the account handle from Drupal and add it once again. Tweets were downloaded once I made this change.
Perhaps something to do with OAuth?
Comment #14
damienmckennaPlease test out the current -dev release and let me know if you're still having the problem.
Comment #15
Anonymous (not verified) commentedI ran into the same issue using Twitter 7.x-5.11 - everything appeared to be set up correctly but no tweets were being shown.
As suggested in comment #10, the problem was that I had unticked "Import and display the Twitter statuses of site users who have entered their Twitter account information" (on the module's Settings tab). After ticking the box and running cron the tweets showed up. (I also cleared the cache, just to be sure).
Perhaps the checkbox needs a help text. I'm not sure what exactly the option does and it seems that unticking the box does a lot of damage!
Comment #16
Karnarel commentedI also had this issue using Twitter 7x-6.2 and Drupal 7.52 : Everything setup fine, application registered, account pulled from Twitter with read/write access, "Import and display Twitter statuses..." checked, cron ran, but still no tweets in the Tweets page/view.
This might not be related to the current issue directly, but as it might help others I though I would post it here. If this needs to be moved, be my guest.
The problem was on the Twitter side : you need to make you tweets public ! This is not very clear, as in the Twitter documentation it is said that once the application has read/write access, it should be able to pull protected tweets.
It might be good to include this information in the documentation (unless I missed it somehow).