Skip to content

Twitter Cards

iRaziul edited this page Mar 22, 2026 · 1 revision

Twitter Cards

Use SeoKit::twitter() to control Twitter-specific tags.

Basic Setup

SeoKit::twitter()
    ->card('summary_large_image')
    ->site('@yourbrand')
    ->creator('@yourbrand')
    ->title($post->title)
    ->description($post->excerpt)
    ->image($post->featured_image, $post->title);

Supported Card Types

  • summary
  • summary_large_image
  • app
  • player

Player Cards

SeoKit::twitter()
    ->card('player')
    ->player('https://example.com/embed/player', 640, 360);

Custom Properties

SeoKit::twitter()->add('app:id:iphone', '123456789');

Clone this wiki locally