Vai al contenuto

๐Ÿฆ Pubblicazione su X (Twitter)

Il BOT pubblica Tweet su un profilo X (Twitter) tramite le API ufficiali.

Warning

Le API ufficiali hanno rimosso la pubblicazione gratuita: serve ricaricare l'account sviluppatore (circa 0,20โ‚ฌ a post). Il BOT puรฒ eliminare un Tweet ma non modificarlo (limitazione delle API).

Impostazioni in: Impostazioni โ†’ Integrazioni โ†’ X (Twitter)


1. Ottenere i Token API

  1. Fai login su x.com.
  2. Apri il Developer Portal.
  3. Quando chiede di creare un Account Sviluppatore, in basso scegli Sign Up For Free Account:
  4. Alle motivazioni d'uso delle API scrivi:
    I want to tweet some posts on my account using the API while staying within the free monthly limit of 500 tweets. I don't expect to make any other API calls besides the Manage Tweets endpoint. I'd also like to include media in my tweets for my audience.
    
    Attiva tutte le spunte e premi Submit:
  5. Nella dashboard, premi le impostazioni accanto alla tua Project App:
  6. In basso, in User authentication settings, premi Set up:
  7. In App Permissions seleziona Read and Write:
  8. In Type of App seleziona Web App, Automated App or Bot:
  9. In App Info:
    • Callback URI: https://dealsbot.io/twitterLogin.php
    • Website URL: https://dealsbot.io
  10. Premi Save e conferma con Yes.
  11. Compaiono Client ID (1) e Client Secret (2): salvali (serviranno agli Step 1 e 2 sul BOT). Premi Done โ†’ Yes, I have saved it. !!! note Puoi rigenerarli dalla sezione "OAuth 2.0 Client ID and Client Secret" dell'App.
  12. Nella gestione App, in alto apri Keys and tokens:
  13. In Consumer Keys premi Regenerate e conferma con Yes, regenerate:
  14. Copia API Key (3) e API Key Secret (4): serviranno agli Step 3 e 4 sul BOT.
  15. Conferma con Yes, I have saved them e passa al BOT.

2. Configurazione sul BOT e connessione dell'account

  1. Sul BOT: Impostazioni โ†’ Integrazioni โ†’ X (Twitter).
  2. Configurazione Token:
    • Step 1: invia il Client ID (Step 11);
    • Step 2: invia il Client Secret (Step 11);
    • Step 3: invia l'API Key (Step 14);
    • Step 4: invia l'API Secret (Step 14).
  3. Senza errori, le chiavi sono configurate: premi Collega Account (ora visibile).
  4. Segui le istruzioni del BOT. Servono due autorizzazioni. La prima: !!! note Fai login su Twitter prima di aprire il link, cosรฌ vedrai "Authorize app" e non "Sign In".
  5. Alla seconda autorizzazione premi di nuovo Authorize app. !!! note Se ti viene chiesto il login a X, fallo: finirai sulla Home di X. Torna al BOT, premi Indietro e ripeti il Collegamento Account: al secondo tentativo non chiederร  il login.
  6. A buon fine vedi "OK! You can go back to the BOT!" e il BOT conferma il collegamento: