Twitter (X)

Connect Twitter (X) with Webflow to embed live social feeds, automate post distribution, and control how pages appear when shared on X.

Install app
View website
View lesson
A record settings
CNAME record settings
Twitter (X)

Webflow generates production-ready HTML and handles CMS content, responsive layouts, and hosting. It does not include built-in connections to social platforms. Displaying a live X timeline, showing a social proof wall of customer tweets, or automatically posting to X when new CMS content goes live requires external code, services, or APIs.

Connecting X with Webflow makes it possible to embed individual posts and full timelines directly on pages, aggregate hashtag feeds for events or campaigns, sync tweet data into Webflow CMS collections for SEO-indexed archives, and configure Twitter Card meta tags so shared links display rich previews. You can use zero-code embeds or build API-driven workflows.

This combination is most useful for marketing teams adding social proof to landing pages, event organizers displaying live hashtag walls, and developers building automated publishing pipelines between Webflow CMS and X.

How to integrate Twitter (X) with Webflow

What is Twitter (X)? X (formerly Twitter) is a social media and microblogging platform where users publish short-form posts, share media, and participate in real-time conversations. Users can embed posts on external websites with tools at publish.twitter.com, and use the X API v2 for programmatic access to post data, user profiles, timelines, and search results.

Teams use X and Webflow together when they need social content visible on their website without manual updates. A SaaS company might embed customer testimonials from X on a pricing page, while a content team might auto-post new blog entries to X the moment they publish in the CMS. Each scenario calls for a different integration method.

You can connect Twitter (X) and Webflow in 4 ways:

  • X embed codes and Code Embed elements handle displaying individual posts, timelines, and buttons without any API access or authentication.
  • Third-party widget services like Juicer, Curator, and EmbedSocial aggregate and style X feeds with moderation controls through a single embed snippet.
  • n8n automation workflows connect Webflow triggers directly to X actions without custom code.
  • The Webflow and X APIs give you full control over CMS syncs, custom feed rendering, and automated posting pipelines, but require server-side development.

Most implementations combine two or more of these methods depending on the use case.

Embed X posts, timelines, and buttons with Code Embed elements

X provides free embed codes for individual posts, profile timelines, list timelines, and five button types (share, follow, mention, hashtag, message) through its official tool at publish.twitter.com. These embed codes work inside Webflow's Code Embed element without any API credentials or developer account. A paid Webflow site plan (Basic or above) is required to use Code Embed elements. Embeds render only on the published live site, not on the Webflow canvas.

Embed an individual post

Embedding a single X post displays it as a formatted card with the author's name, handle, post text, and engagement actions.

To embed a single post:

  1. Navigate to the post on x.com, click the ··· menu, and select Embed post. Alternatively, go to publish.twitter.com and paste the post URL.
  2. Click Copy Code to copy the generated HTML snippet.
  3. In Webflow, press A to open the Add Elements panel, then drag a Code Embed element onto your canvas.
  4. Paste the embed code into the code editor and click Save & Close.
  5. Click Publish to see the rendered post on the live site.

The generated code includes a <blockquote> tag and a <script> reference to platform.twitter.com/widgets.js. When placing multiple embeds on the same page, load the widgets.js script only once. Place it in Custom code in head and body tags in the page's Before field and remove the <script> tag from each individual Code Embed element.

Embed a profile or list timeline

A timeline embed displays a scrollable feed of recent posts from a specific X profile or curated X List.

To embed a timeline:

  1. Go to publish.twitter.com and paste the profile URL (e.g., https://twitter.com/username) or list URL (e.g., https://twitter.com/i/lists/[list-id]).
  2. Select Embedded Timeline and click Copy Code.
  3. In Webflow, add a Code Embed element where the feed should appear, paste the code, and click Save & Close.
  4. Publish the site.

You can customize the timeline's appearance by adding data attributes to the <a> tag before pasting:

  • data-theme="dark" switches to dark mode
  • data-chrome="noheader nofooter noborders" removes default UI elements
  • data-height="600" sets a fixed pixel height
  • data-tweet-limit="5" caps the number of visible posts

Use the twitter.com domain in embed URLs even when copying from x.com. Both domains resolve to the same content, but some oEmbed parsers only recognize twitter.com URLs.

Add follow, share, and action buttons

X offers five button types through publish.twitter.com: Share, Follow, Mention, Hashtag, and Message. Each generates a small inline widget.

To add a button:

  1. Go to publish.twitter.com and select Twitter Buttons.
  2. Choose the button type and configure the target account or URL.
  3. Copy the generated code.
  4. In Webflow, add a Code Embed element at the exact position where the button should appear (inside a navbar, beside a heading, within a CTA section).
  5. Paste the code, save, and publish.

Buttons are inline elements, so the Code Embed placement determines where they render on the page.

Configure Twitter Card meta tags

Twitter Cards control how Webflow pages appear when shared on X. Webflow automatically generates Open Graph tags from page SEO settings and sets twitter:card to summary. To display a large image preview instead, you need to add explicit meta tags.

To upgrade to a large image card:

  1. Open the Pages panel, click the gear icon on the target page, and scroll to Custom Code.
  2. In the Inside <head> tag field, paste:
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Your Page Title">
<meta name="twitter:description" content="Your page description here.">
<meta name="twitter:image" content="https://yoursite.com/path/to/image.jpg">
  1. Save and publish.

Once these tags are published, shared links can display a large-image card on X.

Use JPG or PNG images only. X does not support AVIF or WebP for card images. Add og:image:width and og:image:height meta tags in site settings custom code to prevent rendering inconsistencies. To test your card, create a draft tweet containing your page URL, since the X Card Validator no longer shows direct live previews.

For site-wide defaults, add a twitter:card and twitter:site meta tag to Site settings > Custom Code > Head Code.

Display X feeds with third-party widget services

Third-party widget services provide more styling control, content moderation, and multi-platform aggregation than native embeds. These services handle X API authentication on their end and provide a single embed code snippet you paste into a Code Embed element. All require a paid Webflow site plan and a paid subscription to the widget service for X access (X's API changes have removed free-tier X support from most aggregators).

To set up a third-party widget feed:

  1. Sign up with the widget service and connect your X account or specify the hashtag/handle you want to aggregate.
  2. Choose a layout template, customize colors and display options, and configure any moderation rules.
  3. Copy the generated embed code from the service's dashboard.
  4. In Webflow, add a Code Embed element where the feed should appear and paste the code.
  5. Publish the site. The feed renders on the live page and updates automatically based on the service's refresh interval.

Widget services add a content moderation layer that native widgets.js embeds lack entirely. For any use case where a feed might surface unpredictable content, a moderated widget service is a better fit than a raw native embed.

Connect Webflow and X with n8n

n8n works with Webflow-to-X integration. It requires you to configure your own X developer app with OAuth 2.0 permissions set to "Read and write and Direct message," so you need an active X developer account.

Confirmed Webflow-to-X workflows in n8n include:

  • Webflow New Collection Item trigger → X Create a post action
  • Webflow New Form Submission trigger → X Send a Direct Message action
  • Webflow Site Published trigger → X Create a post action

Common workflows include auto-posting to X when new CMS content is published, tweeting site publish announcements, and sending a Direct Message when a Webflow form is submitted.

Build workflows with the understanding that X may change API access policies with limited notice.

Build with the Webflow and X APIs

For full programmatic control over data flow between X and Webflow, both platforms offer REST APIs. This approach requires server-side development. Webflow has no native server execution environment, so all API calls need external infrastructure: serverless functions (AWS Lambda, Vercel, Cloudflare Workers) or a dedicated backend server. OAuth client secrets must never be placed in Webflow custom code, since that code is exposed client-side.

Use these APIs:

  • The X API v2 (base URL: https://api.x.com) handles post lookup, user profiles, timelines, search, post creation, and media upload
  • The Webflow Data API v2 (base URL: https://api.webflow.com/v2/) handles CMS collections, items, forms, site publishing, and webhooks
  • Webflow webhooks trigger events like collection_item_created, form_submission, and site_publish that can fire API calls to X

X API authentication uses OAuth 2.0 App-Only (Bearer Token) for read-only public data, or OAuth 2.0 with PKCE for actions that require user context like posting. Most read endpoints on the X API now operate on a pay-per-use model ($0.005 per post read, $0.001 for owned reads), though certain own-account endpoints (such as your own posts, liked tweets, and following lists) remain free. Post creation costs $0.015 per post, and posts containing URLs cost $0.20 per post.

Sync X posts into Webflow CMS

You can pull posts from an X timeline or search query and store them as Webflow CMS items. This creates an SEO-indexed, searchable archive on your domain that loads faster than embedded widgets.

To implement a CMS sync:

  1. Create a CMS collection in Webflow with fields mapped to X post data: Plain Text for id_str and author handle, Rich Text for post content, Date/Time for created_at, Number fields for like count and retweet count, and a Link field for the post URL.
  2. Deploy a serverless function that authenticates with the X API using a Bearer Token and calls GET /2/users/{id}/tweets with tweet.fields=created_at,author_id,public_metrics to fetch recent posts.
  3. For each new post, call POST /v2/collections/{collection_id}/items/live on the Webflow Data API to create a published CMS item with the mapped field values.
  4. Schedule the function to run at a regular interval (e.g., every 15 minutes via a cron trigger).

For high-volume accounts, implement pagination handling and a deduplication check using the tweet id_str as a unique key.

Auto-post to X when CMS content is published

A Webflow webhook can notify your server whenever a new CMS item goes live, triggering an automatic post to X.

To set up auto-posting:

  1. Register a Webflow webhook by calling POST /v2/sites/{site_id}/webhooks with triggerType set to collection_item_created and your server's endpoint URL.
  2. When the webhook fires, your server receives the new item's data, including its title, slug, and any custom fields.
  3. Construct the post text from the CMS item data and call POST /2/tweets on the X API with OAuth 2.0 PKCE authentication to publish it.

Posts containing URLs cost $0.20 each on X's pay-per-use plan, so factor this into the cost model for automated distribution workflows. Webflow retries failed webhook deliveries up to 3 times at 10-minute intervals. After 3 failures, the webhook deactivates.

What can you build with the Twitter (X) Webflow integration?

Integrating Twitter (X) with Webflow lets you display live social content and automate distribution workflows without maintaining a separate social media management platform.

  • Social proof wall on pricing pages: Embed a curated grid of customer tweets on a SaaS pricing or landing page using a widget service like Juicer or EmbedSocial. Each tweet links directly to the poster's X profile, making the endorsement verifiable. This pattern is common for converting skeptical visitors who need peer validation before purchasing.
  • Live event hashtag feed: Display a real-time feed of posts from a branded hashtag on a conference or campaign page. A widget service with moderation controls filters out off-topic or inappropriate posts while surfacing attendee content. Post-event, the feed serves as a recap page that captures the activity and reach of the campaign.
  • SEO-indexed tweet archive: Use a serverless function to pull posts from the X API and store them as Webflow CMS items with structured fields for author, date, metrics, and content. Bind a Collection List to this collection on a dedicated archive page. The result is a searchable, fast-loading content library that lives on your domain and gets indexed by search engines.
  • Automated cross-posting pipeline: Set up a Webflow webhook or n8n workflow that fires whenever a new blog post or product update publishes in the CMS. The automation constructs a post with the title and URL, then publishes it to X. The content team writes once in Webflow and distribution happens automatically.

If you need more control over custom feed layouts, real-time streaming, or multi-account management, the API integration path covers those cases with full flexibility.

Frequently asked questions

  • Yes. Code Embed elements, which are required to paste any X embed code or third-party widget snippet, are only available on paid Webflow site plans (Basic and above). Free Webflow accounts cannot add custom code in any form. This applies to all embed methods, whether native X embeds, widget services, or custom JavaScript.

  • No. Embedding individual posts, timelines, and buttons using codes from publish.twitter.com does not require API access or a developer account. The X API is only needed for programmatic use cases like fetching post data at scale, syncing content into Webflow CMS, or automated posting. The Webflow X integration page confirms that official embed codes work directly without API credentials.

  • X embed codes rely on the widgets.js script from platform.twitter.com, which only executes on the published live site. Webflow's canvas does not run custom scripts during editing. Publish the site and check the live URL to see the rendered embed. If the embed still does not render after publishing, verify that you used twitter.com (not x.com) in the embed URL, since some parsers only recognize the legacy domain.

  • Yes. n8n supports a Webflow New Collection Item trigger with an X Create a post action. You will need your own X developer app with OAuth 2.0 configured. For more control, the Webflow webhooks API can trigger a serverless function that calls the X API v2 post creation endpoint.

  • Loading widgets.js from platform.twitter.com sets tracking cookies and transmits data to X servers. For EU-targeted sites, this requires explicit user consent before the script loads. Webflow does not provide native consent-gated script loading. You can implement a third-party Consent Management Platform (CMP) that conditionally loads scripts based on consent, write custom JavaScript that defers widgets.js loading until consent is captured, or use a widget service like EmbedSocial that markets GDPR-compliant lazy loading as a feature.

Twitter (X)
Twitter (X)
Joined in

Category

Social media

Description

Embed X posts, timelines, and follow buttons in Webflow using Code Embed elements, third-party widget services, or the X and Webflow APIs.

Install app

This integration page is provided for informational and convenience purposes only.


Other Social media integrations

Other Social media integrations

Twitter

Twitter

Twitter allows you to embed a variety of widgets from single tweets to timelines and follow buttons.

Social media
Learn more
Tagembed: Social Media Aggregator

Tagembed: Social Media Aggregator

Collect, Customize and Embed Social media Feeds and Reviews on your website.

Social media
Learn more
Pinterest

Pinterest

Connect Pinterest's visual discovery platform with Webflow to create engaging websites with embedded boards, social sharing features, and automated content distribution. Share your visual content with Pinterest's 500+ million users while maintaining complete design control.

Social media
Learn more
LinkedIn

LinkedIn

Connect LinkedIn, a professional networking and advertising platform, with Webflow to install the Insight Tag for ad tracking, embed posts and follow buttons, and auto-publish CMS content to your company page.

Social media
Learn more
Instagram

Instagram

Social media
Learn more
Flockler

Flockler

Connect Flockler with Webflow using the native app plugin, direct embed codes, or the REST API for CMS synchronization.

Social media
Learn more
Facebook

Facebook

Connect Facebook to Webflow to track ad conversions, sync product catalogs, and add social features through a Marketplace app, native site settings, or direct API integration.

Social media
Learn more
EmbedSocial

EmbedSocial

Connect EmbedSocial with Webflow to add live social media feeds, review widgets, and shoppable UGC galleries that update automatically without republishing.

Social media
Learn more
EmbedAlbum (by EmbedSocial)

EmbedAlbum (by EmbedSocial)

Display dynamic photo albums from Facebook, Instagram, and other social platforms on your Webflow site. Create auto-updating galleries that showcase social proof, build trust, and keep content fresh without manual updates.

Social media
Learn more

Related integrations

No items found.

Get started for free

Try Webflow for as long as you like with our free Starter plan. Purchase a paid Site plan to publish, host, and unlock additional features.

Get started — it’s free