KBAISE/ for lovable
Library
Docs

Connect your app to X (Twitter)

about 5 minBuildingchecked 25h agoOfficial page
The short version

Connect your X account to Lovable using a Bearer token to search public posts and look up profiles. The connection provides read-only access to public data across your project chat and published apps.

Workspace admins and owners who want to display public X profiles or search public posts in their Lovable apps.

Do this, in order

  1. 1

    Sign in to the X Developer Portal and open or create a project and app.

    You need an app registered with X to generate the required credentials.

  2. 2

    Go to Keys and tokens in your app settings, generate an app-only Bearer Token, and copy it.

    Lovable requires this token to authenticate read-only requests to the X API v2.

  3. 3

    In Lovable, navigate to Connectors and select X (Twitter).

    This opens the setup page for the X integration in your workspace.

  4. 4

    Click Connect, enter a display name, and paste your Bearer token.

    Lovable tests and verifies the token against X before saving.

  5. 5

    Select your sharing preference under Sharing to keep it private or share with your team, then click Connect.

    This determines which workspace members can link this connection to their projects.

  6. 6

    Open your project chat and ask Lovable to link your project to X and build your desired feature.

    This enables your app to make live queries to X using your saved connection.

Paste this into your project

Use X and build a dashboard that searches recent posts on X for a keyword.

Words decoded

Bearer token
A secret digital access key that lets an app read public X data securely without a user login.
Rate limits
Caps placed by X on the number of searches or profile lookups you can perform in a given time period.

Where people get stuck

  • The connection is strictly read-only and cannot post updates, like posts, send direct messages, or follow users.
  • You cannot view private timelines or posts from protected accounts.
  • Regenerating your Bearer token in the X Developer Portal will immediately break your integration until you update it in Lovable.
  • All projects using this connection share the same X API usage limits and quotas.

The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.