Closed (fixed)
Project:
Twitter
Version:
6.x-2.6
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2009 at 17:46 UTC
Updated:
3 Dec 2011 at 23:50 UTC
The module is working nicely for me as main admin user, but other authorised users are getting an error when they post a blog to the site. They have set up their Twitter accounts on their Drupal user profile, complete with passwords. But when they post a blog, they're getting the following message:
An error ocurred when posting to twitter: 401 Unauthorised
I've checked permissions, and they should all be fine.
When I go in as admin and re-save the blog entries, they successfully post to the global Twitter account, but not to the individual users' Twitter accounts.
Any ideas?
Comments
Comment #1
ianreeves commentedIn fact I can clarify exactly when this 401 error message is occurring. It's when an authorised user has added their own Twitter account details to their user profile.
When they haven't added their own Twitter account, the system posts to the global account without problem.
As soon as they add their own account, they get the 401 Unauthorised message when they post - and no tweet is sent either to the global account or to their own account.
The Tweets from their own account are importing into Drupal, though.
Comment #2
radj commentedI am also experiencing this problem.
Comment #3
sillygwailoTake a look at the issue at http://drupal.org/node/356379, esp. my patch at http://drupal.org/node/356379#comment-2188398 I think I had the same problem as this, and the patch there addresses that issue (in my case, for users with multiple Twitter accounts associated with their Drupal account, but the logic should work with only one account associated too).
Comment #4
mcurry commented*subscribe*
Comment #5
kvit commentedsubscribe
Comment #6
Ken Knowles commentedI would get this error when I changed the author.
Comment #7
jwjoshuawalker commentedI also experienced this issue when users tried to add content that posted to twitter.
My fix was changing:
TO
in twitter.inc on line 136
Comment #8
baxterjones commentedi also added that & (ampersand) and nothing changed.. permissions still denied 401
Comment #9
superfedya commentedsame problem since yesterday :(
Comment #10
reganjcunliffe commentedSame problem here. API change recently perhaps?
Comment #11
edalcin commentedI've changed the "Alternate API URL:" to "https://twitter.com" and works for me.
Comment #12
tajabosc commentedSolution at #11 doesn't work for me.
Even if message says "Successfully posted to Twitter" , the tweet is not published on twitter.com
Comment #13
sillygwailoreganjcunliffe: Twitter recently started requiring OAuth for authentication. See the issue at #404470: Authenticate Twitter_Actions.module via OAuth.module 2.x instead of Basic Auth specifically starting at comment #47.
Comment #14
michaelp6of7 commented#11 tip, Alternate API URL: to https://twitter.com fixed my problem.
UPDATE: no, actually it still doesn't work but the Twitter module says it posted. Twitter never receives the information and does not get published.
Comment #15
avpadernoI have marked #609576: 401 Unauthorized - without triggers as duplicate of this report.
Comment #16
superfedya commentedto import your nodes to Twitter use http://twitterfeed.com
This service will transfer your nodes from RSS to twitter and it's work great!
Comment #17
mawosch commentedSame 401 Problem
- subscribe -
Comment #18
Marko B commentedOk so if OAuth is required then this post to twitter doesnt work. Tried with dev version but no luck also? whats status/plan for this?
Comment #19
quasiheros commentedSame problem here...
subscribe
Comment #20
Marko B commentedHere you go for temporary solution
http://drupal.org/node/404470#comment-3456224
go to #106
Comment #21
josepvalls commented+1
My I change the priority to major?
Maybe it should be a task to write oAuth compatibility?
Comment #22
ndenhild commented#20 does the trick! Works great on my three sites so... Thanks.
Comment #23
avpadernoComment #24
steinmb commented