Twitter module not working anymore because of Twitter v2 API?

Created on 19 June 2023, about 1 year ago
Updated 2 December 2023, 7 months ago

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

πŸ› Bug report
Status

Needs review

Version

5.11

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany stefan.korn Jossgrund

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @stefan.korn
  • πŸ‡ΊπŸ‡ΈUnited States spiritcapsule

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

  • πŸ‡©πŸ‡ͺGermany viddel

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

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    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?

  • πŸ‡¬πŸ‡§United Kingdom Hebl

    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?

  • Status changed to Needs review 12 months ago
  • πŸ‡¬πŸ‡§United Kingdom Hebl

    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.

  • πŸ‡ΊπŸ‡ΈUnited States aitala

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

    Eric

  • πŸ‡©πŸ‡ͺGermany sic

    Same for our websites :/

  • πŸ‡ΊπŸ‡ΈUnited States anthonyroundtree

    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?

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

  • πŸ‡ΊπŸ‡ΈUnited States anthonyroundtree

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

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

  • πŸ‡ΊπŸ‡ΈUnited States bmcclure West Virginia

    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.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Production build 0.69.0 2024