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.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

stefan.korn created an issue. See original summary.

spiritcapsule’s picture

We are also getting "TwitterException: Unauthorized" during cron. Failing to pull in new tweets since May 22, 2023.

viddel’s picture

Same here!
I think Twitter shut down API-Calls for v1.1 (I am not 100% sure).

DamienMcKenna’s picture

FWIW 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?

Hebl’s picture

The 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?

Hebl’s picture

Status: Active » Needs review

Maybe 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.

aitala’s picture

At the moment, I can't even post new tweets, so I'm not sure what is going on..

Eric

sic’s picture

Same for our websites :/

anthonyroundtree’s picture

FWIW I was able to use the integration to post a tweet on Monday, but maybe other API endpoints are not so lucky?

If 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?

DamienMcKenna’s picture

I don't have my site set up to pull tweets, I only use it for posting them.

anthonyroundtree’s picture

If you don't mind me asking, are you posting your tweets and are they still displaying on your site?

DamienMcKenna’s picture

I only posted one a few weeks ago, I haven't posted one since. And I don't show tweets on my site.

bmcclure’s picture

As 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.

DamienMcKenna’s picture

I was able to post a text-only tweet a few minutes ago without any problems. This is weird.