Twitter/X just getting started but error

Hi,

Just getting started with n8n and I’m trying to get the workflow at Share jokes on Twitter automatically | n8n workflow template to work.

I’ve configured X corrected but the X node fails with:
Forbidden - perhaps check your credentials? You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product
If I swap in a HTTP Request node instead, and do a direct tweet, the tweet is posted so at least I know my credentials are working.

I understand the example is 2 years old so maybe this example is broken. I was hoping someone could point me in the right direction

Thank you for any help
Martin

Share the output returned by the last node

Information on your n8n setup

  • n8n version: v1.42.1
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system:

Hey @aussiemartin,

Welcome to the community :cake:

Can you try adding the X node again, Your example is using the v1 node which uses an older API so that could be why Twitter is saying you don’t have full access to the API endpoints.

ahh ok, I understand. Sorry I thought it would be using a current node, my mistake.

OK I added a new credential with a v2 callback URL.
It processed and tweeted like this -
twitter-error

At least it posted something lol

And changing to an expression produces an error - Bad request - please check your parameters. One or more parameters to your request was invalid.

It sounds like there is an issue with the expression or the data, Looking at the output of the node the text field you are using is blank. Try using something like the below, The one thing I did just notice is it looks like we don’t have an option to upload an image to X / Twitter anymore so you will need to find a way to do that as well.

ok that was the main thing I wanted to do :slight_smile:
Anyway, I’ll do some more digging around
Thanks for your help too. appeciated

1 Like

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