Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Twitter messages are not updated anymore. Getting "TwitterException: Unauthorized" during cron job. Authorization problem can be fixed if changing some settings in the developer account at Twitter. Tried to add a new authenticated account, but there is this message from Twitter:
"You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only" - Code 453
Steps to reproduce
Setup Twitter module and try to add an authenticated account.
Comments
Comment #2
spiritcapsule CreditAttribution: spiritcapsule as a volunteer commentedWe are also getting "TwitterException: Unauthorized" during cron. Failing to pull in new tweets since May 22, 2023.
Comment #3
viddel CreditAttribution: viddel commentedSame here!
I think Twitter shut down API-Calls for v1.1 (I am not 100% sure).
Comment #4
DamienMcKennaFWIW I was able to use the integration to post a tweet on Monday, but maybe other API endpoints are not so lucky?
I don't have time or inclination to maintain this module at the moment, I'm happy to bring on another person to help maintain it if someone else has the time?
Comment #5
Hebl CreditAttribution: Hebl at manifesto commentedThe Twitter v2 API is much more limited in what it can do on a free plan.
The v1 API was deprecated and shut down on 29th June 2023.
Currently v2 only allows login to an account and to post tweets, so a lot of this module will not be functional.
With this in mind and given this is a Drupal 7 module I'm not sure it's worth anyones time rewriting for the v2 API?
Perhaps we could update the module description at least to warn people of the API changes?
Comment #6
Hebl CreditAttribution: Hebl at manifesto commentedMaybe something like this:
Notice.
Due to the deprecation of the V1 Twitter API the functionality in this module is limited to posting new tweets only.
Comment #7
aitala CreditAttribution: aitala commentedAt the moment, I can't even post new tweets, so I'm not sure what is going on..
Eric
Comment #8
sic CreditAttribution: sic commentedSame for our websites :/
Comment #9
anthonyroundtree CreditAttribution: anthonyroundtree commentedIf you don't mind me asking, how were you able to do that? Were you still able to pull tweets and display them on your site?
Comment #10
DamienMcKennaI don't have my site set up to pull tweets, I only use it for posting them.
Comment #11
anthonyroundtree CreditAttribution: anthonyroundtree commentedIf you don't mind me asking, are you posting your tweets and are they still displaying on your site?
Comment #12
DamienMcKennaI only posted one a few weeks ago, I haven't posted one since. And I don't show tweets on my site.
Comment #13
bmcclure CreditAttribution: bmcclure at Volantis Development commentedAs far as I can tell, the ability to post tweets in the v1.1 API for the Free tier is gone now.
It stopped working for our Twitter account on 8/22, no other changes were made but we started getting 403 Forbidden responses when the module tries to post a tweet.
I came across this reply from an official account that seems to confirm that their pricing tier documentation is wrong: https://twittercommunity.com/t/authentication-error-when-trying-to-post-...
So assuming that's accurate, this module will probably only work for posting tweets from a premium plan, unless your particular account hasn't lost access yet.
Comment #14
DamienMcKennaI was able to post a text-only tweet a few minutes ago without any problems. This is weird.