# Twitter node again

**URL:** <https://community.n8n.io/t/twitter-node-again/31592>\
**Category:** Questions\
**Tags:** twitter\
**Created:** [October 14, 2023, 6:50pm UTC](https://community.n8n.io/t/twitter-node-again/31592 "2023-10-14T18:50:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rad](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rad/32/25328_2.png) [@Rad](https://community.n8n.io/u/Rad)\
**Post date:** [October 14, 2023, 6:50pm UTC](https://community.n8n.io/t/twitter-node-again/31592/1 "2023-10-14T18:50:17Z")

</div>

Hi everyone,  
So I do have a self hosted version of n8n I updraded to 1.9.3  
Due to recent changes on X/Twitter, many of my old nodes are not working anymore, so I reverted to this new version to update my workflows.  
I recreated the App on the X developer site, just to be sure ther isn’t any issues in there.  
So I wanted to use this thread to get things straight as I saw so many question from other people (me included) regarding Twitter which it seems to be an issue here.

1- What are we supposed to use as protocol now, OAuth or OAuth2  
2- Is the X node working now, because I still have difficulties in getting it to work (Authorization URL issues)  
3- Are we supposed to use API Keys or Customer Keys from X developer platform to use the X node ?

At the moment, none of the alternatives work for me anymore, I used to use HTTP node, but it is not working anymore simply because the Credentials are not workin on Twitter anymore, and this is so frustrating from user perspective ( I know it is not n8n, it is Twitter)

Can we have a reference guide, to clean up a bit the confusion that all of us have here about the latest changes of Twitter and how we can deal with that, I know they blocked all OAuth1 can we have a confirmaiton here ? ALso the Ofiicial n8n documentation is referencing API Key and Secretes to be used, this is actually not working for reference

Thanks

Rad

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [October 15, 2023, 4:18pm UTC](https://community.n8n.io/t/twitter-node-again/31592/3 "2023-10-15T16:18:01Z")

</div>

Hey @Rad,

The quick version is if you are using the new node we use OAuth2 now which works with the newer API versions.

When you try to authenticate what error are you seeing?

---

<div class="post-metadata">

**Author:** ![Rad](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rad/32/25328_2.png) [@Rad](https://community.n8n.io/u/Rad)\
**Post date:** [October 16, 2023, 1:39pm UTC](https://community.n8n.io/t/twitter-node-again/31592/4 "2023-10-16T13:39:52Z")

</div>

Hey @Jon ,

So I am getting this screen first 🙂

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/7/f72b61467d4c31c553635dc22a4f04e848ace561.png)

Then I get a 404 page

after the redirect is called

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/5/8591a7b35ca542e74091e98bf21b41ada6f4977c.png)

And I checked everything is correctly done many times according to the documentation

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [October 16, 2023, 2:51pm UTC](https://community.n8n.io/t/twitter-node-again/31592/5 "2023-10-16T14:51:54Z")

</div>

Hey @Rad,

That last one is interesting, Are you using the tunnel option? I suspect the tunnel crashed and if you restart n8n you will be given a new URL that will work.

I would also recommend not using the tunnel option in a production environment because this sort of thing can happen.

---

<div class="post-metadata">

**Author:** ![Rad](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rad/32/25328_2.png) [@Rad](https://community.n8n.io/u/Rad)\
**Post date:** [October 16, 2023, 4:16pm UTC](https://community.n8n.io/t/twitter-node-again/31592/6 "2023-10-16T16:16:26Z")

</div>

Hi @Jon hmm yes I am using the tunnel version, do you have any link to an example docker-compose for production setup ?

That’s my compose file

```auto
version: '3.8'

volumes:
  db_storage:
  n8n_storage:

services:
  postgres:
    image: postgres:11
    restart: always
    environment:
      - POSTGRES_USER
      - POSTGRES_PASSWORD
      - POSTGRES_DB
      - POSTGRES_NON_ROOT_USER
      - POSTGRES_NON_ROOT_PASSWORD
    volumes:
      - db_storage:/var/lib/postgresql/data
      - ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
    healthcheck:
      test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
      interval: 5s
      timeout: 5s
      retries: 10

  n8n:
    image: n8nio/n8n
    mem_limit: 512m
    mem_reservation: 128M
    cpus: 0.5
    restart: always
    environment:
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgres
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
      - DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
      - DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER
      - N8N_BASIC_AUTH_PASSWORD
    ports:
      - 5678:5678
    links:
      - postgres
    volumes:
      - n8n_storage:/home/node/.n8n
    command: "start --tunnel"
        #command: /bin/sh -c "n8n start --tunnel"
    depends_on:
      postgres:
        condition: service_healthy

```

---

<div class="post-metadata">

**Author:** ![Rad](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rad/32/25328_2.png) [@Rad](https://community.n8n.io/u/Rad)\
**Post date:** [October 16, 2023, 4:18pm UTC](https://community.n8n.io/t/twitter-node-again/31592/7 "2023-10-16T16:18:36Z")

</div>

Ok @Jon a restart did solve the problem indeed, so what is the alternative to the tunnel version ?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [October 17, 2023, 7:30am UTC](https://community.n8n.io/t/twitter-node-again/31592/8 "2023-10-17T07:30:54Z")

</div>

Hey @Rad,

The alternative would be to set up a DNS record that uses your own domain and configure any firewalls needed for your environment. I think most of our install guides briefly mention it but as it can be very different depending on what you are using we don’t have detailed instructions.

There are also other tunnel services like Cloudflares that can be used, Assuming you are running on a VPS or similar somewhere that is already available on the internet it should just be a case of pointing an A record to your server and if you have a reverse proxy running routing it through.

---

<div class="post-metadata">

**Author:** ![Rad](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rad/32/25328_2.png) [@Rad](https://community.n8n.io/u/Rad)\
**Post date:** [October 17, 2023, 9:42pm UTC](https://community.n8n.io/t/twitter-node-again/31592/9 "2023-10-17T21:42:31Z")

</div>

Problem solved @Jon  
thanks for your help  
Rad

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [January 15, 2024, 9:42pm UTC](https://community.n8n.io/t/twitter-node-again/31592/10 "2024-01-15T21:42:44Z")

</div>

Closed on January 15, 2024, 9:42pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
